#pragma warning disable 1591, 0114, 0108, 0114, 0108
// ------------------------------------------------------------------------------
//
// Generated by Xsd2Code. Version 3.3.0.33001
// OSGeo.MapGuide.ObjectModels.ApplicationDefinitionBindingListCSharpTrueFalseTrueTrueTrueFalseTrueFalseNet20SerializeDeserializeSaveToFileLoadFromFileTrueFalseFalseFalseFalse
//
// ------------------------------------------------------------------------------
namespace OSGeo.MapGuide.ObjectModels.ApplicationDefinition_1_0_0 {
using System;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections;
using System.Xml.Schema;
using System.ComponentModel;
using System.IO;
using OSGeo.MapGuide.ObjectModels.ApplicationDefinition;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute("ApplicationDefinition", Namespace="", IsNullable=false)]
public partial class ApplicationDefinitionType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string titleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string templateUrlField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList mapSetField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList widgetSetField;
[EditorBrowsable(EditorBrowsableState.Never)]
private CustomContentType extensionField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string Title {
get {
return this.titleField;
}
set {
if ((this.titleField != null)) {
if ((titleField.Equals(value) != true)) {
this.titleField = value;
this.OnPropertyChanged("Title");
}
}
else {
this.titleField = value;
this.OnPropertyChanged("Title");
}
}
}
public string TemplateUrl {
get {
return this.templateUrlField;
}
set {
if ((this.templateUrlField != null)) {
if ((templateUrlField.Equals(value) != true)) {
this.templateUrlField = value;
this.OnPropertyChanged("TemplateUrl");
}
}
else {
this.templateUrlField = value;
this.OnPropertyChanged("TemplateUrl");
}
}
}
[System.Xml.Serialization.XmlArrayItemAttribute("MapGroup", IsNullable=false)]
public BindingList MapSet {
get {
return this.mapSetField;
}
set {
if ((this.mapSetField != null)) {
if ((mapSetField.Equals(value) != true)) {
this.mapSetField = value;
this.OnPropertyChanged("MapSet");
}
}
else {
this.mapSetField = value;
this.OnPropertyChanged("MapSet");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("WidgetSet")]
public BindingList WidgetSet {
get {
return this.widgetSetField;
}
set {
if ((this.widgetSetField != null)) {
if ((widgetSetField.Equals(value) != true)) {
this.widgetSetField = value;
this.OnPropertyChanged("WidgetSet");
}
}
else {
this.widgetSetField = value;
this.OnPropertyChanged("WidgetSet");
}
}
}
public CustomContentType Extension {
get {
return this.extensionField;
}
set {
if ((this.extensionField != null)) {
if ((extensionField.Equals(value) != true)) {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
else {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current ApplicationDefinitionType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an ApplicationDefinitionType object
///
/// string workflow markup to deserialize
/// Output ApplicationDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out ApplicationDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(ApplicationDefinitionType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out ApplicationDefinitionType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static ApplicationDefinitionType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((ApplicationDefinitionType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current ApplicationDefinitionType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an ApplicationDefinitionType object
///
/// string xml file to load and deserialize
/// Output ApplicationDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out ApplicationDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(ApplicationDefinitionType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out ApplicationDefinitionType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static ApplicationDefinitionType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this ApplicationDefinitionType object
///
public virtual ApplicationDefinitionType Clone() {
return ((ApplicationDefinitionType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class MapGroupType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private MapViewType initialViewField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList mapField;
[EditorBrowsable(EditorBrowsableState.Never)]
private CustomContentType extensionField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string idField;
private static System.Xml.Serialization.XmlSerializer serializer;
public MapViewType InitialView {
get {
return this.initialViewField;
}
set {
if ((this.initialViewField != null)) {
if ((initialViewField.Equals(value) != true)) {
this.initialViewField = value;
this.OnPropertyChanged("InitialView");
}
}
else {
this.initialViewField = value;
this.OnPropertyChanged("InitialView");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("Map")]
public BindingList Map {
get {
return this.mapField;
}
set {
if ((this.mapField != null)) {
if ((mapField.Equals(value) != true)) {
this.mapField = value;
this.OnPropertyChanged("Map");
}
}
else {
this.mapField = value;
this.OnPropertyChanged("Map");
}
}
}
public CustomContentType Extension {
get {
return this.extensionField;
}
set {
if ((this.extensionField != null)) {
if ((extensionField.Equals(value) != true)) {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
else {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public string id {
get {
return this.idField;
}
set {
if ((this.idField != null)) {
if ((idField.Equals(value) != true)) {
this.idField = value;
this.OnPropertyChanged("id");
}
}
else {
this.idField = value;
this.OnPropertyChanged("id");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MapGroupType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current MapGroupType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an MapGroupType object
///
/// string workflow markup to deserialize
/// Output MapGroupType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MapGroupType obj, out System.Exception exception) {
exception = null;
obj = default(MapGroupType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MapGroupType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MapGroupType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MapGroupType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MapGroupType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an MapGroupType object
///
/// string xml file to load and deserialize
/// Output MapGroupType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MapGroupType obj, out System.Exception exception) {
exception = null;
obj = default(MapGroupType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MapGroupType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MapGroupType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this MapGroupType object
///
public virtual MapGroupType Clone() {
return ((MapGroupType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class MapViewType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private double centerXField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double centerYField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double scaleField;
private static System.Xml.Serialization.XmlSerializer serializer;
public double CenterX {
get {
return this.centerXField;
}
set {
if ((centerXField.Equals(value) != true)) {
this.centerXField = value;
this.OnPropertyChanged("CenterX");
}
}
}
public double CenterY {
get {
return this.centerYField;
}
set {
if ((centerYField.Equals(value) != true)) {
this.centerYField = value;
this.OnPropertyChanged("CenterY");
}
}
}
public double Scale {
get {
return this.scaleField;
}
set {
if ((scaleField.Equals(value) != true)) {
this.scaleField = value;
this.OnPropertyChanged("Scale");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MapViewType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current MapViewType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an MapViewType object
///
/// string workflow markup to deserialize
/// Output MapViewType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MapViewType obj, out System.Exception exception) {
exception = null;
obj = default(MapViewType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MapViewType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MapViewType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MapViewType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MapViewType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an MapViewType object
///
/// string xml file to load and deserialize
/// Output MapViewType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MapViewType obj, out System.Exception exception) {
exception = null;
obj = default(MapViewType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MapViewType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MapViewType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this MapViewType object
///
public virtual MapViewType Clone() {
return ((MapViewType)(this.MemberwiseClone()));
}
#endregion
}
[System.Xml.Serialization.XmlIncludeAttribute(typeof(UiWidgetType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(MapWidgetType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class WidgetType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string nameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string typeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string locationField;
[EditorBrowsable(EditorBrowsableState.Never)]
private CustomContentType extensionField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string Name {
get {
return this.nameField;
}
set {
if ((this.nameField != null)) {
if ((nameField.Equals(value) != true)) {
this.nameField = value;
this.OnPropertyChanged("Name");
}
}
else {
this.nameField = value;
this.OnPropertyChanged("Name");
}
}
}
public string Type {
get {
return this.typeField;
}
set {
if ((this.typeField != null)) {
if ((typeField.Equals(value) != true)) {
this.typeField = value;
this.OnPropertyChanged("Type");
}
}
else {
this.typeField = value;
this.OnPropertyChanged("Type");
}
}
}
public string Location {
get {
return this.locationField;
}
set {
if ((this.locationField != null)) {
if ((locationField.Equals(value) != true)) {
this.locationField = value;
this.OnPropertyChanged("Location");
}
}
else {
this.locationField = value;
this.OnPropertyChanged("Location");
}
}
}
public CustomContentType Extension {
get {
return this.extensionField;
}
set {
if ((this.extensionField != null)) {
if ((extensionField.Equals(value) != true)) {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
else {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(WidgetType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current WidgetType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an WidgetType object
///
/// string workflow markup to deserialize
/// Output WidgetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out WidgetType obj, out System.Exception exception) {
exception = null;
obj = default(WidgetType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out WidgetType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static WidgetType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((WidgetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current WidgetType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an WidgetType object
///
/// string xml file to load and deserialize
/// Output WidgetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out WidgetType obj, out System.Exception exception) {
exception = null;
obj = default(WidgetType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out WidgetType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static WidgetType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this WidgetType object
///
public virtual WidgetType Clone() {
return ((WidgetType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class CustomContentType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private System.Xml.XmlElement[] anyField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlAnyElementAttribute()]
public System.Xml.XmlElement[] Any
{
get {
return this.anyField;
}
set {
if ((this.anyField != null)) {
if ((anyField.Equals(value) != true)) {
this.anyField = value;
this.OnPropertyChanged("Any");
}
}
else {
this.anyField = value;
this.OnPropertyChanged("Any");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(CustomContentType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current CustomContentType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an CustomContentType object
///
/// string workflow markup to deserialize
/// Output CustomContentType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out CustomContentType obj, out System.Exception exception) {
exception = null;
obj = default(CustomContentType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out CustomContentType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static CustomContentType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((CustomContentType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current CustomContentType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an CustomContentType object
///
/// string xml file to load and deserialize
/// Output CustomContentType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out CustomContentType obj, out System.Exception exception) {
exception = null;
obj = default(CustomContentType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out CustomContentType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static CustomContentType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this CustomContentType object
///
public virtual CustomContentType Clone() {
return ((CustomContentType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class UiWidgetType : WidgetType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string imageUrlField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string imageClassField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string labelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string tooltipField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string statusTextField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string disabledField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string ImageUrl {
get {
return this.imageUrlField;
}
set {
if ((this.imageUrlField != null)) {
if ((imageUrlField.Equals(value) != true)) {
this.imageUrlField = value;
this.OnPropertyChanged("ImageUrl");
}
}
else {
this.imageUrlField = value;
this.OnPropertyChanged("ImageUrl");
}
}
}
public string ImageClass {
get {
return this.imageClassField;
}
set {
if ((this.imageClassField != null)) {
if ((imageClassField.Equals(value) != true)) {
this.imageClassField = value;
this.OnPropertyChanged("ImageClass");
}
}
else {
this.imageClassField = value;
this.OnPropertyChanged("ImageClass");
}
}
}
public string Label {
get {
return this.labelField;
}
set {
if ((this.labelField != null)) {
if ((labelField.Equals(value) != true)) {
this.labelField = value;
this.OnPropertyChanged("Label");
}
}
else {
this.labelField = value;
this.OnPropertyChanged("Label");
}
}
}
public string Tooltip {
get {
return this.tooltipField;
}
set {
if ((this.tooltipField != null)) {
if ((tooltipField.Equals(value) != true)) {
this.tooltipField = value;
this.OnPropertyChanged("Tooltip");
}
}
else {
this.tooltipField = value;
this.OnPropertyChanged("Tooltip");
}
}
}
public string StatusText {
get {
return this.statusTextField;
}
set {
if ((this.statusTextField != null)) {
if ((statusTextField.Equals(value) != true)) {
this.statusTextField = value;
this.OnPropertyChanged("StatusText");
}
}
else {
this.statusTextField = value;
this.OnPropertyChanged("StatusText");
}
}
}
public string Disabled {
get {
return this.disabledField;
}
set {
if ((this.disabledField != null)) {
if ((disabledField.Equals(value) != true)) {
this.disabledField = value;
this.OnPropertyChanged("Disabled");
}
}
else {
this.disabledField = value;
this.OnPropertyChanged("Disabled");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(UiWidgetType));
}
return serializer;
}
}
//public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
//public virtual void OnPropertyChanged(string info) {
// System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
// if ((handler != null)) {
// handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
// }
//}
#region Serialize/Deserialize
///
/// Serializes current UiWidgetType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an UiWidgetType object
///
/// string workflow markup to deserialize
/// Output UiWidgetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out UiWidgetType obj, out System.Exception exception) {
exception = null;
obj = default(UiWidgetType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out UiWidgetType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static UiWidgetType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((UiWidgetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current UiWidgetType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an UiWidgetType object
///
/// string xml file to load and deserialize
/// Output UiWidgetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out UiWidgetType obj, out System.Exception exception) {
exception = null;
obj = default(UiWidgetType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out UiWidgetType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static UiWidgetType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this UiWidgetType object
///
public virtual UiWidgetType Clone() {
return ((UiWidgetType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class MapWidgetType : WidgetType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string mapIdField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string MapId {
get {
return this.mapIdField;
}
set {
if ((this.mapIdField != null)) {
if ((mapIdField.Equals(value) != true)) {
this.mapIdField = value;
this.OnPropertyChanged("MapId");
}
}
else {
this.mapIdField = value;
this.OnPropertyChanged("MapId");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MapWidgetType));
}
return serializer;
}
}
//public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
//public virtual void OnPropertyChanged(string info) {
// System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
// if ((handler != null)) {
// handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
// }
//}
#region Serialize/Deserialize
///
/// Serializes current MapWidgetType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an MapWidgetType object
///
/// string workflow markup to deserialize
/// Output MapWidgetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MapWidgetType obj, out System.Exception exception) {
exception = null;
obj = default(MapWidgetType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MapWidgetType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MapWidgetType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MapWidgetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MapWidgetType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an MapWidgetType object
///
/// string xml file to load and deserialize
/// Output MapWidgetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MapWidgetType obj, out System.Exception exception) {
exception = null;
obj = default(MapWidgetType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MapWidgetType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MapWidgetType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this MapWidgetType object
///
public virtual MapWidgetType Clone() {
return ((MapWidgetType)(this.MemberwiseClone()));
}
#endregion
}
[System.Xml.Serialization.XmlIncludeAttribute(typeof(WidgetItemType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(SeparatorItemType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(FlyoutItemType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public abstract partial class UiItemType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private UiItemFunctionType functionField;
private static System.Xml.Serialization.XmlSerializer serializer;
public UiItemFunctionType Function {
get {
return this.functionField;
}
set {
if ((functionField.Equals(value) != true)) {
this.functionField = value;
this.OnPropertyChanged("Function");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(UiItemType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current UiItemType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an UiItemType object
///
/// string workflow markup to deserialize
/// Output UiItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out UiItemType obj, out System.Exception exception) {
exception = null;
obj = default(UiItemType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out UiItemType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static UiItemType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((UiItemType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current UiItemType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an UiItemType object
///
/// string xml file to load and deserialize
/// Output UiItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out UiItemType obj, out System.Exception exception) {
exception = null;
obj = default(UiItemType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out UiItemType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static UiItemType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this UiItemType object
///
public virtual UiItemType Clone() {
return ((UiItemType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class WidgetItemType : UiItemType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string widgetField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string Widget {
get {
return this.widgetField;
}
set {
if ((this.widgetField != null)) {
if ((widgetField.Equals(value) != true)) {
this.widgetField = value;
this.OnPropertyChanged("Widget");
}
}
else {
this.widgetField = value;
this.OnPropertyChanged("Widget");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(WidgetItemType));
}
return serializer;
}
}
//public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
//public virtual void OnPropertyChanged(string info) {
// System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
// if ((handler != null)) {
// handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
// }
//}
#region Serialize/Deserialize
///
/// Serializes current WidgetItemType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an WidgetItemType object
///
/// string workflow markup to deserialize
/// Output WidgetItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out WidgetItemType obj, out System.Exception exception) {
exception = null;
obj = default(WidgetItemType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out WidgetItemType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static WidgetItemType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((WidgetItemType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current WidgetItemType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an WidgetItemType object
///
/// string xml file to load and deserialize
/// Output WidgetItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out WidgetItemType obj, out System.Exception exception) {
exception = null;
obj = default(WidgetItemType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out WidgetItemType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static WidgetItemType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this WidgetItemType object
///
public virtual WidgetItemType Clone() {
return ((WidgetItemType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class SeparatorItemType : UiItemType, System.ComponentModel.INotifyPropertyChanged {
private static System.Xml.Serialization.XmlSerializer serializer;
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(SeparatorItemType));
}
return serializer;
}
}
//public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
//public virtual void OnPropertyChanged(string info) {
// System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
// if ((handler != null)) {
// handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
// }
//}
#region Serialize/Deserialize
///
/// Serializes current SeparatorItemType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an SeparatorItemType object
///
/// string workflow markup to deserialize
/// Output SeparatorItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out SeparatorItemType obj, out System.Exception exception) {
exception = null;
obj = default(SeparatorItemType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out SeparatorItemType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static SeparatorItemType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((SeparatorItemType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current SeparatorItemType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an SeparatorItemType object
///
/// string xml file to load and deserialize
/// Output SeparatorItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out SeparatorItemType obj, out System.Exception exception) {
exception = null;
obj = default(SeparatorItemType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out SeparatorItemType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static SeparatorItemType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this SeparatorItemType object
///
public virtual SeparatorItemType Clone() {
return ((SeparatorItemType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class FlyoutItemType : UiItemType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string labelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string tooltipField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string imageUrlField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string imageClassField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList itemField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string Label {
get {
return this.labelField;
}
set {
if ((this.labelField != null)) {
if ((labelField.Equals(value) != true)) {
this.labelField = value;
this.OnPropertyChanged("Label");
}
}
else {
this.labelField = value;
this.OnPropertyChanged("Label");
}
}
}
public string Tooltip {
get {
return this.tooltipField;
}
set {
if ((this.tooltipField != null)) {
if ((tooltipField.Equals(value) != true)) {
this.tooltipField = value;
this.OnPropertyChanged("Tooltip");
}
}
else {
this.tooltipField = value;
this.OnPropertyChanged("Tooltip");
}
}
}
public string ImageUrl {
get {
return this.imageUrlField;
}
set {
if ((this.imageUrlField != null)) {
if ((imageUrlField.Equals(value) != true)) {
this.imageUrlField = value;
this.OnPropertyChanged("ImageUrl");
}
}
else {
this.imageUrlField = value;
this.OnPropertyChanged("ImageUrl");
}
}
}
public string ImageClass {
get {
return this.imageClassField;
}
set {
if ((this.imageClassField != null)) {
if ((imageClassField.Equals(value) != true)) {
this.imageClassField = value;
this.OnPropertyChanged("ImageClass");
}
}
else {
this.imageClassField = value;
this.OnPropertyChanged("ImageClass");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("Item")]
public BindingList Item {
get {
return this.itemField;
}
set {
if ((this.itemField != null)) {
if ((itemField.Equals(value) != true)) {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
else {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FlyoutItemType));
}
return serializer;
}
}
//public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
//public virtual void OnPropertyChanged(string info) {
// System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
// if ((handler != null)) {
// handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
// }
//}
#region Serialize/Deserialize
///
/// Serializes current FlyoutItemType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an FlyoutItemType object
///
/// string workflow markup to deserialize
/// Output FlyoutItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FlyoutItemType obj, out System.Exception exception) {
exception = null;
obj = default(FlyoutItemType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FlyoutItemType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FlyoutItemType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FlyoutItemType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FlyoutItemType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an FlyoutItemType object
///
/// string xml file to load and deserialize
/// Output FlyoutItemType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FlyoutItemType obj, out System.Exception exception) {
exception = null;
obj = default(FlyoutItemType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FlyoutItemType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FlyoutItemType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this FlyoutItemType object
///
public virtual FlyoutItemType Clone() {
return ((FlyoutItemType)(this.MemberwiseClone()));
}
#endregion
}
[System.Xml.Serialization.XmlIncludeAttribute(typeof(UiItemContainerType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class ContainerType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string nameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string typeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string positionField;
[EditorBrowsable(EditorBrowsableState.Never)]
private CustomContentType extensionField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string Name {
get {
return this.nameField;
}
set {
if ((this.nameField != null)) {
if ((nameField.Equals(value) != true)) {
this.nameField = value;
this.OnPropertyChanged("Name");
}
}
else {
this.nameField = value;
this.OnPropertyChanged("Name");
}
}
}
public string Type {
get {
return this.typeField;
}
set {
if ((this.typeField != null)) {
if ((typeField.Equals(value) != true)) {
this.typeField = value;
this.OnPropertyChanged("Type");
}
}
else {
this.typeField = value;
this.OnPropertyChanged("Type");
}
}
}
public string Position {
get {
return this.positionField;
}
set {
if ((this.positionField != null)) {
if ((positionField.Equals(value) != true)) {
this.positionField = value;
this.OnPropertyChanged("Position");
}
}
else {
this.positionField = value;
this.OnPropertyChanged("Position");
}
}
}
public CustomContentType Extension {
get {
return this.extensionField;
}
set {
if ((this.extensionField != null)) {
if ((extensionField.Equals(value) != true)) {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
else {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(ContainerType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current ContainerType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an ContainerType object
///
/// string workflow markup to deserialize
/// Output ContainerType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out ContainerType obj, out System.Exception exception) {
exception = null;
obj = default(ContainerType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out ContainerType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static ContainerType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((ContainerType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current ContainerType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an ContainerType object
///
/// string xml file to load and deserialize
/// Output ContainerType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out ContainerType obj, out System.Exception exception) {
exception = null;
obj = default(ContainerType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out ContainerType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static ContainerType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this ContainerType object
///
public virtual ContainerType Clone() {
return ((ContainerType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class UiItemContainerType : ContainerType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList itemField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("Item")]
public BindingList Item {
get {
return this.itemField;
}
set {
if ((this.itemField != null)) {
if ((itemField.Equals(value) != true)) {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
else {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(UiItemContainerType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current UiItemContainerType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an UiItemContainerType object
///
/// string workflow markup to deserialize
/// Output UiItemContainerType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out UiItemContainerType obj, out System.Exception exception) {
exception = null;
obj = default(UiItemContainerType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out UiItemContainerType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static UiItemContainerType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((UiItemContainerType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current UiItemContainerType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an UiItemContainerType object
///
/// string xml file to load and deserialize
/// Output UiItemContainerType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out UiItemContainerType obj, out System.Exception exception) {
exception = null;
obj = default(UiItemContainerType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out UiItemContainerType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static UiItemContainerType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this UiItemContainerType object
///
public virtual UiItemContainerType Clone() {
return ((UiItemContainerType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class WidgetSetType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList containerField;
[EditorBrowsable(EditorBrowsableState.Never)]
private MapWidgetType mapWidgetField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList widgetField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("Container")]
public BindingList Container {
get {
return this.containerField;
}
set {
if ((this.containerField != null)) {
if ((containerField.Equals(value) != true)) {
this.containerField = value;
this.OnPropertyChanged("Container");
}
}
else {
this.containerField = value;
this.OnPropertyChanged("Container");
}
}
}
public MapWidgetType MapWidget {
get {
return this.mapWidgetField;
}
set {
if ((this.mapWidgetField != null)) {
if ((mapWidgetField.Equals(value) != true)) {
this.mapWidgetField = value;
this.OnPropertyChanged("MapWidget");
}
}
else {
this.mapWidgetField = value;
this.OnPropertyChanged("MapWidget");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("Widget")]
public BindingList Widget {
get {
return this.widgetField;
}
set {
if ((this.widgetField != null)) {
if ((widgetField.Equals(value) != true)) {
this.widgetField = value;
this.OnPropertyChanged("Widget");
}
}
else {
this.widgetField = value;
this.OnPropertyChanged("Widget");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(WidgetSetType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current WidgetSetType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an WidgetSetType object
///
/// string workflow markup to deserialize
/// Output WidgetSetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out WidgetSetType obj, out System.Exception exception) {
exception = null;
obj = default(WidgetSetType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out WidgetSetType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static WidgetSetType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((WidgetSetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current WidgetSetType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an WidgetSetType object
///
/// string xml file to load and deserialize
/// Output WidgetSetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out WidgetSetType obj, out System.Exception exception) {
exception = null;
obj = default(WidgetSetType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out WidgetSetType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static WidgetSetType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this WidgetSetType object
///
public virtual WidgetSetType Clone() {
return ((WidgetSetType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class MapType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string typeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string singleTileField;
[EditorBrowsable(EditorBrowsableState.Never)]
private CustomContentType extensionField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string Type {
get {
return this.typeField;
}
set {
if ((this.typeField != null)) {
if ((typeField.Equals(value) != true)) {
this.typeField = value;
this.OnPropertyChanged("Type");
}
}
else {
this.typeField = value;
this.OnPropertyChanged("Type");
}
}
}
public string SingleTile {
get {
return this.singleTileField;
}
set {
if ((this.singleTileField != null)) {
if ((singleTileField.Equals(value) != true)) {
this.singleTileField = value;
this.OnPropertyChanged("SingleTile");
}
}
else {
this.singleTileField = value;
this.OnPropertyChanged("SingleTile");
}
}
}
public CustomContentType Extension {
get {
return this.extensionField;
}
set {
if ((this.extensionField != null)) {
if ((extensionField.Equals(value) != true)) {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
else {
this.extensionField = value;
this.OnPropertyChanged("Extension");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MapType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current MapType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an MapType object
///
/// string workflow markup to deserialize
/// Output MapType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MapType obj, out System.Exception exception) {
exception = null;
obj = default(MapType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MapType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MapType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MapType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MapType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an MapType object
///
/// string xml file to load and deserialize
/// Output MapType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MapType obj, out System.Exception exception) {
exception = null;
obj = default(MapType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MapType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MapType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this MapType object
///
public virtual MapType Clone() {
return ((MapType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class MapSetType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList mapGroupField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("MapGroup")]
public BindingList MapGroup {
get {
return this.mapGroupField;
}
set {
if ((this.mapGroupField != null)) {
if ((mapGroupField.Equals(value) != true)) {
this.mapGroupField = value;
this.OnPropertyChanged("MapGroup");
}
}
else {
this.mapGroupField = value;
this.OnPropertyChanged("MapGroup");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MapSetType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current MapSetType object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an MapSetType object
///
/// string workflow markup to deserialize
/// Output MapSetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MapSetType obj, out System.Exception exception) {
exception = null;
obj = default(MapSetType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MapSetType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MapSetType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MapSetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MapSetType object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an MapSetType object
///
/// string xml file to load and deserialize
/// Output MapSetType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MapSetType obj, out System.Exception exception) {
exception = null;
obj = default(MapSetType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MapSetType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MapSetType LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this MapSetType object
///
public virtual MapSetType Clone() {
return ((MapSetType)(this.MemberwiseClone()));
}
#endregion
}
}