#pragma warning disable 1591, 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; /// /// Application definition widget info set /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] public partial class ApplicationDefinitionWidgetInfoSet : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList widgetInfoField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("WidgetInfo")] public BindingList WidgetInfo { get { return this.widgetInfoField; } set { if ((this.widgetInfoField != null)) { if ((widgetInfoField.Equals(value) != true)) { this.widgetInfoField = value; this.OnPropertyChanged("WidgetInfo"); } } else { this.widgetInfoField = value; this.OnPropertyChanged("WidgetInfo"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionWidgetInfoSet)); } 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 ApplicationDefinitionWidgetInfoSet 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 ApplicationDefinitionWidgetInfoSet object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionWidgetInfoSet object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionWidgetInfoSet obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionWidgetInfoSet); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionWidgetInfoSet obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionWidgetInfoSet Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionWidgetInfoSet)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionWidgetInfoSet 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 ApplicationDefinitionWidgetInfoSet object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionWidgetInfoSet object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionWidgetInfoSet obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionWidgetInfoSet); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionWidgetInfoSet obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionWidgetInfoSet 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 ApplicationDefinitionWidgetInfoSet object /// public virtual ApplicationDefinitionWidgetInfoSet Clone() { return ((ApplicationDefinitionWidgetInfoSet)(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 ApplicationDefinitionWidgetInfoType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string typeField; [EditorBrowsable(EditorBrowsableState.Never)] private string localizedTypeField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string locationField; [EditorBrowsable(EditorBrowsableState.Never)] private string labelField; [EditorBrowsable(EditorBrowsableState.Never)] private string tooltipField; [EditorBrowsable(EditorBrowsableState.Never)] private string statusTextField; [EditorBrowsable(EditorBrowsableState.Never)] private string imageUrlField; [EditorBrowsable(EditorBrowsableState.Never)] private string imageClassField; [EditorBrowsable(EditorBrowsableState.Never)] private bool standardUiField; [EditorBrowsable(EditorBrowsableState.Never)] private bool standardUiFieldSpecified; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList containableByField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList parameterField; 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 LocalizedType { get { return this.localizedTypeField; } set { if ((this.localizedTypeField != null)) { if ((localizedTypeField.Equals(value) != true)) { this.localizedTypeField = value; this.OnPropertyChanged("LocalizedType"); } } else { this.localizedTypeField = value; this.OnPropertyChanged("LocalizedType"); } } } public string Description { get { return this.descriptionField; } set { if ((this.descriptionField != null)) { if ((descriptionField.Equals(value) != true)) { this.descriptionField = value; this.OnPropertyChanged("Description"); } } else { this.descriptionField = value; this.OnPropertyChanged("Description"); } } } 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 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 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 bool StandardUi { get { return this.standardUiField; } set { if ((standardUiField.Equals(value) != true)) { this.standardUiField = value; this.OnPropertyChanged("StandardUi"); } } } [System.Xml.Serialization.XmlIgnoreAttribute()] public bool StandardUiSpecified { get { return this.standardUiFieldSpecified; } set { if ((standardUiFieldSpecified.Equals(value) != true)) { this.standardUiFieldSpecified = value; this.OnPropertyChanged("StandardUiSpecified"); } } } [System.Xml.Serialization.XmlElementAttribute("ContainableBy")] public BindingList ContainableBy { get { return this.containableByField; } set { if ((this.containableByField != null)) { if ((containableByField.Equals(value) != true)) { this.containableByField = value; this.OnPropertyChanged("ContainableBy"); } } else { this.containableByField = value; this.OnPropertyChanged("ContainableBy"); } } } [System.Xml.Serialization.XmlElementAttribute("Parameter")] public BindingList Parameter { get { return this.parameterField; } set { if ((this.parameterField != null)) { if ((parameterField.Equals(value) != true)) { this.parameterField = value; this.OnPropertyChanged("Parameter"); } } else { this.parameterField = value; this.OnPropertyChanged("Parameter"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionWidgetInfoType)); } 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 ApplicationDefinitionWidgetInfoType 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 ApplicationDefinitionWidgetInfoType object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionWidgetInfoType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionWidgetInfoType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionWidgetInfoType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionWidgetInfoType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionWidgetInfoType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionWidgetInfoType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionWidgetInfoType 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 ApplicationDefinitionWidgetInfoType object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionWidgetInfoType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionWidgetInfoType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionWidgetInfoType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionWidgetInfoType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionWidgetInfoType 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 ApplicationDefinitionWidgetInfoType object /// public virtual ApplicationDefinitionWidgetInfoType Clone() { return ((ApplicationDefinitionWidgetInfoType)(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 ApplicationDefinitionWidgetParameterType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string typeField; [EditorBrowsable(EditorBrowsableState.Never)] private string labelField; [EditorBrowsable(EditorBrowsableState.Never)] private string minField; [EditorBrowsable(EditorBrowsableState.Never)] private string maxField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList allowedValueField; [EditorBrowsable(EditorBrowsableState.Never)] private string defaultValueField; [EditorBrowsable(EditorBrowsableState.Never)] private bool isMandatoryField; [EditorBrowsable(EditorBrowsableState.Never)] private bool isMandatoryFieldSpecified; 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 Description { get { return this.descriptionField; } set { if ((this.descriptionField != null)) { if ((descriptionField.Equals(value) != true)) { this.descriptionField = value; this.OnPropertyChanged("Description"); } } else { this.descriptionField = value; this.OnPropertyChanged("Description"); } } } 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 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 Min { get { return this.minField; } set { if ((this.minField != null)) { if ((minField.Equals(value) != true)) { this.minField = value; this.OnPropertyChanged("Min"); } } else { this.minField = value; this.OnPropertyChanged("Min"); } } } public string Max { get { return this.maxField; } set { if ((this.maxField != null)) { if ((maxField.Equals(value) != true)) { this.maxField = value; this.OnPropertyChanged("Max"); } } else { this.maxField = value; this.OnPropertyChanged("Max"); } } } [System.Xml.Serialization.XmlElementAttribute("AllowedValue")] public BindingList AllowedValue { get { return this.allowedValueField; } set { if ((this.allowedValueField != null)) { if ((allowedValueField.Equals(value) != true)) { this.allowedValueField = value; this.OnPropertyChanged("AllowedValue"); } } else { this.allowedValueField = value; this.OnPropertyChanged("AllowedValue"); } } } public string DefaultValue { get { return this.defaultValueField; } set { if ((this.defaultValueField != null)) { if ((defaultValueField.Equals(value) != true)) { this.defaultValueField = value; this.OnPropertyChanged("DefaultValue"); } } else { this.defaultValueField = value; this.OnPropertyChanged("DefaultValue"); } } } public bool IsMandatory { get { return this.isMandatoryField; } set { if ((isMandatoryField.Equals(value) != true)) { this.isMandatoryField = value; this.OnPropertyChanged("IsMandatory"); } } } [System.Xml.Serialization.XmlIgnoreAttribute()] public bool IsMandatorySpecified { get { return this.isMandatoryFieldSpecified; } set { if ((isMandatoryFieldSpecified.Equals(value) != true)) { this.isMandatoryFieldSpecified = value; this.OnPropertyChanged("IsMandatorySpecified"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionWidgetParameterType)); } 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 ApplicationDefinitionWidgetParameterType 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 ApplicationDefinitionWidgetParameterType object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionWidgetParameterType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionWidgetParameterType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionWidgetParameterType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionWidgetParameterType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionWidgetParameterType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionWidgetParameterType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionWidgetParameterType 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 ApplicationDefinitionWidgetParameterType object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionWidgetParameterType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionWidgetParameterType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionWidgetParameterType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionWidgetParameterType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionWidgetParameterType 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 ApplicationDefinitionWidgetParameterType object /// public virtual ApplicationDefinitionWidgetParameterType Clone() { return ((ApplicationDefinitionWidgetParameterType)(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 AllowedValueType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string labelField; 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 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"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(AllowedValueType)); } 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 AllowedValueType 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 AllowedValueType object /// /// string workflow markup to deserialize /// Output AllowedValueType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out AllowedValueType obj, out System.Exception exception) { exception = null; obj = default(AllowedValueType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out AllowedValueType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static AllowedValueType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((AllowedValueType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current AllowedValueType 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 AllowedValueType object /// /// string xml file to load and deserialize /// Output AllowedValueType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out AllowedValueType obj, out System.Exception exception) { exception = null; obj = default(AllowedValueType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out AllowedValueType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static AllowedValueType 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 AllowedValueType object /// public virtual AllowedValueType Clone() { return ((AllowedValueType)(this.MemberwiseClone())); } #endregion } /// /// Application definition container info set /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] public partial class ApplicationDefinitionContainerInfoSet : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList containerInfoField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("ContainerInfo")] public BindingList ContainerInfo { get { return this.containerInfoField; } set { if ((this.containerInfoField != null)) { if ((containerInfoField.Equals(value) != true)) { this.containerInfoField = value; this.OnPropertyChanged("ContainerInfo"); } } else { this.containerInfoField = value; this.OnPropertyChanged("ContainerInfo"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionContainerInfoSet)); } 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 ApplicationDefinitionContainerInfoSet 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 ApplicationDefinitionContainerInfoSet object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionContainerInfoSet object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionContainerInfoSet obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionContainerInfoSet); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionContainerInfoSet obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionContainerInfoSet Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionContainerInfoSet)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionContainerInfoSet 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 ApplicationDefinitionContainerInfoSet object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionContainerInfoSet object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionContainerInfoSet obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionContainerInfoSet); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionContainerInfoSet obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionContainerInfoSet 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 ApplicationDefinitionContainerInfoSet object /// public virtual ApplicationDefinitionContainerInfoSet Clone() { return ((ApplicationDefinitionContainerInfoSet)(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 ApplicationDefinitionContainerInfoType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string typeField; [EditorBrowsable(EditorBrowsableState.Never)] private string localizedTypeField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string previewImageUrlField; 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 LocalizedType { get { return this.localizedTypeField; } set { if ((this.localizedTypeField != null)) { if ((localizedTypeField.Equals(value) != true)) { this.localizedTypeField = value; this.OnPropertyChanged("LocalizedType"); } } else { this.localizedTypeField = value; this.OnPropertyChanged("LocalizedType"); } } } public string Description { get { return this.descriptionField; } set { if ((this.descriptionField != null)) { if ((descriptionField.Equals(value) != true)) { this.descriptionField = value; this.OnPropertyChanged("Description"); } } else { this.descriptionField = value; this.OnPropertyChanged("Description"); } } } public string PreviewImageUrl { get { return this.previewImageUrlField; } set { if ((this.previewImageUrlField != null)) { if ((previewImageUrlField.Equals(value) != true)) { this.previewImageUrlField = value; this.OnPropertyChanged("PreviewImageUrl"); } } else { this.previewImageUrlField = value; this.OnPropertyChanged("PreviewImageUrl"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionContainerInfoType)); } 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 ApplicationDefinitionContainerInfoType 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 ApplicationDefinitionContainerInfoType object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionContainerInfoType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionContainerInfoType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionContainerInfoType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionContainerInfoType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionContainerInfoType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionContainerInfoType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionContainerInfoType 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 ApplicationDefinitionContainerInfoType object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionContainerInfoType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionContainerInfoType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionContainerInfoType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionContainerInfoType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionContainerInfoType 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 ApplicationDefinitionContainerInfoType object /// public virtual ApplicationDefinitionContainerInfoType Clone() { return ((ApplicationDefinitionContainerInfoType)(this.MemberwiseClone())); } #endregion } /// /// Application definition template info set /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] public partial class ApplicationDefinitionTemplateInfoSet : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList templateInfoField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("TemplateInfo")] public BindingList TemplateInfo { get { return this.templateInfoField; } set { if ((this.templateInfoField != null)) { if ((templateInfoField.Equals(value) != true)) { this.templateInfoField = value; this.OnPropertyChanged("TemplateInfo"); } } else { this.templateInfoField = value; this.OnPropertyChanged("TemplateInfo"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionTemplateInfoSet)); } 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 ApplicationDefinitionTemplateInfoSet 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 ApplicationDefinitionTemplateInfoSet object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionTemplateInfoSet object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionTemplateInfoSet obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionTemplateInfoSet); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionTemplateInfoSet obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionTemplateInfoSet Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionTemplateInfoSet)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionTemplateInfoSet 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 ApplicationDefinitionTemplateInfoSet object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionTemplateInfoSet object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionTemplateInfoSet obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionTemplateInfoSet); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionTemplateInfoSet obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionTemplateInfoSet 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 ApplicationDefinitionTemplateInfoSet object /// public virtual ApplicationDefinitionTemplateInfoSet Clone() { return ((ApplicationDefinitionTemplateInfoSet)(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 ApplicationDefinitionTemplateInfoType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string locationUrlField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string previewImageUrlField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList panelField; 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 LocationUrl { get { return this.locationUrlField; } set { if ((this.locationUrlField != null)) { if ((locationUrlField.Equals(value) != true)) { this.locationUrlField = value; this.OnPropertyChanged("LocationUrl"); } } else { this.locationUrlField = value; this.OnPropertyChanged("LocationUrl"); } } } public string Description { get { return this.descriptionField; } set { if ((this.descriptionField != null)) { if ((descriptionField.Equals(value) != true)) { this.descriptionField = value; this.OnPropertyChanged("Description"); } } else { this.descriptionField = value; this.OnPropertyChanged("Description"); } } } public string PreviewImageUrl { get { return this.previewImageUrlField; } set { if ((this.previewImageUrlField != null)) { if ((previewImageUrlField.Equals(value) != true)) { this.previewImageUrlField = value; this.OnPropertyChanged("PreviewImageUrl"); } } else { this.previewImageUrlField = value; this.OnPropertyChanged("PreviewImageUrl"); } } } [System.Xml.Serialization.XmlElementAttribute("Panel")] public BindingList Panel { get { return this.panelField; } set { if ((this.panelField != null)) { if ((panelField.Equals(value) != true)) { this.panelField = value; this.OnPropertyChanged("Panel"); } } else { this.panelField = value; this.OnPropertyChanged("Panel"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionTemplateInfoType)); } 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 ApplicationDefinitionTemplateInfoType 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 ApplicationDefinitionTemplateInfoType object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionTemplateInfoType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionTemplateInfoType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionTemplateInfoType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionTemplateInfoType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionTemplateInfoType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionTemplateInfoType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionTemplateInfoType 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 ApplicationDefinitionTemplateInfoType object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionTemplateInfoType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionTemplateInfoType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionTemplateInfoType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionTemplateInfoType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionTemplateInfoType 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 ApplicationDefinitionTemplateInfoType object /// public virtual ApplicationDefinitionTemplateInfoType Clone() { return ((ApplicationDefinitionTemplateInfoType)(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 ApplicationDefinitionPanelType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string labelField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; 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 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 Description { get { return this.descriptionField; } set { if ((this.descriptionField != null)) { if ((descriptionField.Equals(value) != true)) { this.descriptionField = value; this.OnPropertyChanged("Description"); } } else { this.descriptionField = value; this.OnPropertyChanged("Description"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ApplicationDefinitionPanelType)); } 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 ApplicationDefinitionPanelType 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 ApplicationDefinitionPanelType object /// /// string workflow markup to deserialize /// Output ApplicationDefinitionPanelType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ApplicationDefinitionPanelType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionPanelType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ApplicationDefinitionPanelType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ApplicationDefinitionPanelType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ApplicationDefinitionPanelType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ApplicationDefinitionPanelType 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 ApplicationDefinitionPanelType object /// /// string xml file to load and deserialize /// Output ApplicationDefinitionPanelType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ApplicationDefinitionPanelType obj, out System.Exception exception) { exception = null; obj = default(ApplicationDefinitionPanelType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ApplicationDefinitionPanelType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ApplicationDefinitionPanelType 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 ApplicationDefinitionPanelType object /// public virtual ApplicationDefinitionPanelType Clone() { return ((ApplicationDefinitionPanelType)(this.MemberwiseClone())); } #endregion } }