#pragma warning disable 1591, 0114, 0108 // ------------------------------------------------------------------------------ // // Generated by Xsd2Code. Version 3.3.0.33001 // OSGeo.MapGuide.ObjectModels.WebLayoutBindingListCSharpTrueFalseTrueTrueTrueFalseTrueFalseNet20SerializeDeserializeSaveToFileLoadFromFileTrueFalseFalseFalseFalse // // ------------------------------------------------------------------------------ namespace OSGeo.MapGuide.ObjectModels.WebLayout_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.WebLayout; [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlRootAttribute("WebLayout", Namespace="", IsNullable=false)] public partial class WebLayoutType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string titleField; [EditorBrowsable(EditorBrowsableState.Never)] private MapType mapField; [EditorBrowsable(EditorBrowsableState.Never)] private ToolBarType toolBarField; [EditorBrowsable(EditorBrowsableState.Never)] private InformationPaneType informationPaneField; [EditorBrowsable(EditorBrowsableState.Never)] private ContextMenuType contextMenuField; [EditorBrowsable(EditorBrowsableState.Never)] private TaskPaneType taskPaneField; [EditorBrowsable(EditorBrowsableState.Never)] private StatusBarType statusBarField; [EditorBrowsable(EditorBrowsableState.Never)] private ZoomControlType zoomControlField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList commandSetField; 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 MapType 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 ToolBarType ToolBar { get { return this.toolBarField; } set { if ((this.toolBarField != null)) { if ((toolBarField.Equals(value) != true)) { this.toolBarField = value; this.OnPropertyChanged("ToolBar"); } } else { this.toolBarField = value; this.OnPropertyChanged("ToolBar"); } } } public InformationPaneType InformationPane { get { return this.informationPaneField; } set { if ((this.informationPaneField != null)) { if ((informationPaneField.Equals(value) != true)) { this.informationPaneField = value; this.OnPropertyChanged("InformationPane"); } } else { this.informationPaneField = value; this.OnPropertyChanged("InformationPane"); } } } public ContextMenuType ContextMenu { get { return this.contextMenuField; } set { if ((this.contextMenuField != null)) { if ((contextMenuField.Equals(value) != true)) { this.contextMenuField = value; this.OnPropertyChanged("ContextMenu"); } } else { this.contextMenuField = value; this.OnPropertyChanged("ContextMenu"); } } } public TaskPaneType TaskPane { get { return this.taskPaneField; } set { if ((this.taskPaneField != null)) { if ((taskPaneField.Equals(value) != true)) { this.taskPaneField = value; this.OnPropertyChanged("TaskPane"); } } else { this.taskPaneField = value; this.OnPropertyChanged("TaskPane"); } } } public StatusBarType StatusBar { get { return this.statusBarField; } set { if ((this.statusBarField != null)) { if ((statusBarField.Equals(value) != true)) { this.statusBarField = value; this.OnPropertyChanged("StatusBar"); } } else { this.statusBarField = value; this.OnPropertyChanged("StatusBar"); } } } public ZoomControlType ZoomControl { get { return this.zoomControlField; } set { if ((this.zoomControlField != null)) { if ((zoomControlField.Equals(value) != true)) { this.zoomControlField = value; this.OnPropertyChanged("ZoomControl"); } } else { this.zoomControlField = value; this.OnPropertyChanged("ZoomControl"); } } } [System.Xml.Serialization.XmlArrayItemAttribute("Command", IsNullable=false)] public BindingList CommandSet { get { return this.commandSetField; } set { if ((this.commandSetField != null)) { if ((commandSetField.Equals(value) != true)) { this.commandSetField = value; this.OnPropertyChanged("CommandSet"); } } else { this.commandSetField = value; this.OnPropertyChanged("CommandSet"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(WebLayoutType)); } 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 WebLayoutType 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 WebLayoutType object /// /// string workflow markup to deserialize /// Output WebLayoutType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out WebLayoutType obj, out System.Exception exception) { exception = null; obj = default(WebLayoutType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out WebLayoutType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static WebLayoutType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((WebLayoutType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current WebLayoutType 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 WebLayoutType object /// /// string xml file to load and deserialize /// Output WebLayoutType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out WebLayoutType obj, out System.Exception exception) { exception = null; obj = default(WebLayoutType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out WebLayoutType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static WebLayoutType 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 WebLayoutType object /// public virtual WebLayoutType Clone() { return ((WebLayoutType)(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 : ResourceReferenceType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private MapViewType initialViewField; [EditorBrowsable(EditorBrowsableState.Never)] private TargetType hyperlinkTargetField; [EditorBrowsable(EditorBrowsableState.Never)] private string hyperlinkTargetFrameField; 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"); } } } public TargetType HyperlinkTarget { get { return this.hyperlinkTargetField; } set { if ((hyperlinkTargetField.Equals(value) != true)) { this.hyperlinkTargetField = value; this.OnPropertyChanged("HyperlinkTarget"); } } } public string HyperlinkTargetFrame { get { return this.hyperlinkTargetFrameField; } set { if ((this.hyperlinkTargetFrameField != null)) { if ((hyperlinkTargetFrameField.Equals(value) != true)) { this.hyperlinkTargetFrameField = value; this.OnPropertyChanged("HyperlinkTargetFrame"); } } else { this.hyperlinkTargetFrameField = value; this.OnPropertyChanged("HyperlinkTargetFrame"); } } } 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 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.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 ParameterPairType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string keyField; [EditorBrowsable(EditorBrowsableState.Never)] private string valueField; private static System.Xml.Serialization.XmlSerializer serializer; public string Key { get { return this.keyField; } set { if ((this.keyField != null)) { if ((keyField.Equals(value) != true)) { this.keyField = value; this.OnPropertyChanged("Key"); } } else { this.keyField = value; this.OnPropertyChanged("Key"); } } } public string Value { get { return this.valueField; } set { if ((this.valueField != null)) { if ((valueField.Equals(value) != true)) { this.valueField = value; this.OnPropertyChanged("Value"); } } else { this.valueField = value; this.OnPropertyChanged("Value"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ParameterPairType)); } 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 ParameterPairType 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 ParameterPairType object /// /// string workflow markup to deserialize /// Output ParameterPairType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ParameterPairType obj, out System.Exception exception) { exception = null; obj = default(ParameterPairType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ParameterPairType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ParameterPairType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ParameterPairType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ParameterPairType 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 ParameterPairType object /// /// string xml file to load and deserialize /// Output ParameterPairType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ParameterPairType obj, out System.Exception exception) { exception = null; obj = default(ParameterPairType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ParameterPairType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ParameterPairType 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 ParameterPairType object /// public virtual ParameterPairType Clone() { return ((ParameterPairType)(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 ResultColumnType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string propertyField; 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 Property { get { return this.propertyField; } set { if ((this.propertyField != null)) { if ((propertyField.Equals(value) != true)) { this.propertyField = value; this.OnPropertyChanged("Property"); } } else { this.propertyField = value; this.OnPropertyChanged("Property"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ResultColumnType)); } 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 ResultColumnType 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 ResultColumnType object /// /// string workflow markup to deserialize /// Output ResultColumnType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ResultColumnType obj, out System.Exception exception) { exception = null; obj = default(ResultColumnType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ResultColumnType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ResultColumnType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ResultColumnType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ResultColumnType 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 ResultColumnType object /// /// string xml file to load and deserialize /// Output ResultColumnType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ResultColumnType obj, out System.Exception exception) { exception = null; obj = default(ResultColumnType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ResultColumnType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ResultColumnType 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 ResultColumnType object /// public virtual ResultColumnType Clone() { return ((ResultColumnType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvokeScriptCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PrintCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetedCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(HelpCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ViewOptionsCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(MeasureCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(GetPrintablePageCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SelectWithinCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BufferCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvokeURLCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BasicCommandType))] [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 CommandType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string labelField; [EditorBrowsable(EditorBrowsableState.Never)] private string tooltipField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string imageURLField; [EditorBrowsable(EditorBrowsableState.Never)] private string disabledImageURLField; [EditorBrowsable(EditorBrowsableState.Never)] private TargetViewerType targetViewerField; 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 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 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 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 DisabledImageURL { get { return this.disabledImageURLField; } set { if ((this.disabledImageURLField != null)) { if ((disabledImageURLField.Equals(value) != true)) { this.disabledImageURLField = value; this.OnPropertyChanged("DisabledImageURL"); } } else { this.disabledImageURLField = value; this.OnPropertyChanged("DisabledImageURL"); } } } public TargetViewerType TargetViewer { get { return this.targetViewerField; } set { if ((targetViewerField.Equals(value) != true)) { this.targetViewerField = value; this.OnPropertyChanged("TargetViewer"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(CommandType)); } 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 CommandType 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 CommandType object /// /// string workflow markup to deserialize /// Output CommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out CommandType obj, out System.Exception exception) { exception = null; obj = default(CommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out CommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static CommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((CommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current CommandType 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 CommandType object /// /// string xml file to load and deserialize /// Output CommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out CommandType obj, out System.Exception exception) { exception = null; obj = default(CommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out CommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static CommandType 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 CommandType object /// public virtual CommandType Clone() { return ((CommandType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvokeScriptCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PrintCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetedCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(HelpCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ViewOptionsCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(MeasureCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(GetPrintablePageCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SelectWithinCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BufferCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvokeURLCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchCommandType))] [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 CustomCommandType : CommandType, 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(CustomCommandType)); } 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 CustomCommandType 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 CustomCommandType object /// /// string workflow markup to deserialize /// Output CustomCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out CustomCommandType obj, out System.Exception exception) { exception = null; obj = default(CustomCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out CustomCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static CustomCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((CustomCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current CustomCommandType 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 CustomCommandType object /// /// string xml file to load and deserialize /// Output CustomCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out CustomCommandType obj, out System.Exception exception) { exception = null; obj = default(CustomCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out CustomCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static CustomCommandType 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 CustomCommandType object /// public virtual CustomCommandType Clone() { return ((CustomCommandType)(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 InvokeScriptCommandType : CustomCommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string scriptField; private static System.Xml.Serialization.XmlSerializer serializer; public string Script { get { return this.scriptField; } set { if ((this.scriptField != null)) { if ((scriptField.Equals(value) != true)) { this.scriptField = value; this.OnPropertyChanged("Script"); } } else { this.scriptField = value; this.OnPropertyChanged("Script"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(InvokeScriptCommandType)); } 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 InvokeScriptCommandType 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 InvokeScriptCommandType object /// /// string workflow markup to deserialize /// Output InvokeScriptCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out InvokeScriptCommandType obj, out System.Exception exception) { exception = null; obj = default(InvokeScriptCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out InvokeScriptCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static InvokeScriptCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((InvokeScriptCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current InvokeScriptCommandType 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 InvokeScriptCommandType object /// /// string xml file to load and deserialize /// Output InvokeScriptCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out InvokeScriptCommandType obj, out System.Exception exception) { exception = null; obj = default(InvokeScriptCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out InvokeScriptCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static InvokeScriptCommandType 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 InvokeScriptCommandType object /// public virtual InvokeScriptCommandType Clone() { return ((InvokeScriptCommandType)(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 PrintCommandType : CustomCommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList printLayoutField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("PrintLayout")] public BindingList PrintLayout { get { return this.printLayoutField; } set { if ((this.printLayoutField != null)) { if ((printLayoutField.Equals(value) != true)) { this.printLayoutField = value; this.OnPropertyChanged("PrintLayout"); } } else { this.printLayoutField = value; this.OnPropertyChanged("PrintLayout"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(PrintCommandType)); } 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 PrintCommandType 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 PrintCommandType object /// /// string workflow markup to deserialize /// Output PrintCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out PrintCommandType obj, out System.Exception exception) { exception = null; obj = default(PrintCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out PrintCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static PrintCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((PrintCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current PrintCommandType 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 PrintCommandType object /// /// string xml file to load and deserialize /// Output PrintCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out PrintCommandType obj, out System.Exception exception) { exception = null; obj = default(PrintCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out PrintCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static PrintCommandType 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 PrintCommandType object /// public virtual PrintCommandType Clone() { return ((PrintCommandType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(MapType))] [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 ResourceReferenceType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string resourceIdField; private static System.Xml.Serialization.XmlSerializer serializer; public string ResourceId { get { return this.resourceIdField; } set { if ((this.resourceIdField != null)) { if ((resourceIdField.Equals(value) != true)) { this.resourceIdField = value; this.OnPropertyChanged("ResourceId"); } } else { this.resourceIdField = value; this.OnPropertyChanged("ResourceId"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ResourceReferenceType)); } 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 ResourceReferenceType 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 ResourceReferenceType object /// /// string workflow markup to deserialize /// Output ResourceReferenceType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ResourceReferenceType obj, out System.Exception exception) { exception = null; obj = default(ResourceReferenceType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ResourceReferenceType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ResourceReferenceType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ResourceReferenceType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ResourceReferenceType 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 ResourceReferenceType object /// /// string xml file to load and deserialize /// Output ResourceReferenceType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ResourceReferenceType obj, out System.Exception exception) { exception = null; obj = default(ResourceReferenceType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ResourceReferenceType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ResourceReferenceType 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 ResourceReferenceType object /// public virtual ResourceReferenceType Clone() { return ((ResourceReferenceType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(HelpCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ViewOptionsCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(MeasureCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(GetPrintablePageCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SelectWithinCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BufferCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvokeURLCommandType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchCommandType))] [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 TargetedCommandType : CustomCommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private TargetType targetField; [EditorBrowsable(EditorBrowsableState.Never)] private string targetFrameField; private static System.Xml.Serialization.XmlSerializer serializer; public TargetType Target { get { return this.targetField; } set { if ((targetField.Equals(value) != true)) { this.targetField = value; this.OnPropertyChanged("Target"); } } } public string TargetFrame { get { return this.targetFrameField; } set { if ((this.targetFrameField != null)) { if ((targetFrameField.Equals(value) != true)) { this.targetFrameField = value; this.OnPropertyChanged("TargetFrame"); } } else { this.targetFrameField = value; this.OnPropertyChanged("TargetFrame"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(TargetedCommandType)); } 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 TargetedCommandType 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 TargetedCommandType object /// /// string workflow markup to deserialize /// Output TargetedCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out TargetedCommandType obj, out System.Exception exception) { exception = null; obj = default(TargetedCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out TargetedCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static TargetedCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((TargetedCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current TargetedCommandType 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 TargetedCommandType object /// /// string xml file to load and deserialize /// Output TargetedCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out TargetedCommandType obj, out System.Exception exception) { exception = null; obj = default(TargetedCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out TargetedCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static TargetedCommandType 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 TargetedCommandType object /// public virtual TargetedCommandType Clone() { return ((TargetedCommandType)(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 HelpCommandType : TargetedCommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string uRLField; private static System.Xml.Serialization.XmlSerializer serializer; public string URL { get { return this.uRLField; } set { if ((this.uRLField != null)) { if ((uRLField.Equals(value) != true)) { this.uRLField = value; this.OnPropertyChanged("URL"); } } else { this.uRLField = value; this.OnPropertyChanged("URL"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(HelpCommandType)); } 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 HelpCommandType 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 HelpCommandType object /// /// string workflow markup to deserialize /// Output HelpCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out HelpCommandType obj, out System.Exception exception) { exception = null; obj = default(HelpCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out HelpCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static HelpCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((HelpCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current HelpCommandType 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 HelpCommandType object /// /// string xml file to load and deserialize /// Output HelpCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out HelpCommandType obj, out System.Exception exception) { exception = null; obj = default(HelpCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out HelpCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static HelpCommandType 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 HelpCommandType object /// public virtual HelpCommandType Clone() { return ((HelpCommandType)(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 ViewOptionsCommandType : TargetedCommandType, 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(ViewOptionsCommandType)); } 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 ViewOptionsCommandType 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 ViewOptionsCommandType object /// /// string workflow markup to deserialize /// Output ViewOptionsCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ViewOptionsCommandType obj, out System.Exception exception) { exception = null; obj = default(ViewOptionsCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ViewOptionsCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ViewOptionsCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ViewOptionsCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ViewOptionsCommandType 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 ViewOptionsCommandType object /// /// string xml file to load and deserialize /// Output ViewOptionsCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ViewOptionsCommandType obj, out System.Exception exception) { exception = null; obj = default(ViewOptionsCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ViewOptionsCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ViewOptionsCommandType 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 ViewOptionsCommandType object /// public virtual ViewOptionsCommandType Clone() { return ((ViewOptionsCommandType)(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 MeasureCommandType : TargetedCommandType, 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(MeasureCommandType)); } 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 MeasureCommandType 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 MeasureCommandType object /// /// string workflow markup to deserialize /// Output MeasureCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out MeasureCommandType obj, out System.Exception exception) { exception = null; obj = default(MeasureCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out MeasureCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static MeasureCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((MeasureCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current MeasureCommandType 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 MeasureCommandType object /// /// string xml file to load and deserialize /// Output MeasureCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out MeasureCommandType obj, out System.Exception exception) { exception = null; obj = default(MeasureCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out MeasureCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static MeasureCommandType 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 MeasureCommandType object /// public virtual MeasureCommandType Clone() { return ((MeasureCommandType)(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 GetPrintablePageCommandType : TargetedCommandType, 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(GetPrintablePageCommandType)); } 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 GetPrintablePageCommandType 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 GetPrintablePageCommandType object /// /// string workflow markup to deserialize /// Output GetPrintablePageCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out GetPrintablePageCommandType obj, out System.Exception exception) { exception = null; obj = default(GetPrintablePageCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out GetPrintablePageCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static GetPrintablePageCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((GetPrintablePageCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current GetPrintablePageCommandType 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 GetPrintablePageCommandType object /// /// string xml file to load and deserialize /// Output GetPrintablePageCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out GetPrintablePageCommandType obj, out System.Exception exception) { exception = null; obj = default(GetPrintablePageCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out GetPrintablePageCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static GetPrintablePageCommandType 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 GetPrintablePageCommandType object /// public virtual GetPrintablePageCommandType Clone() { return ((GetPrintablePageCommandType)(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 SelectWithinCommandType : TargetedCommandType, 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(SelectWithinCommandType)); } 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 SelectWithinCommandType 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 SelectWithinCommandType object /// /// string workflow markup to deserialize /// Output SelectWithinCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out SelectWithinCommandType obj, out System.Exception exception) { exception = null; obj = default(SelectWithinCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out SelectWithinCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static SelectWithinCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((SelectWithinCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current SelectWithinCommandType 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 SelectWithinCommandType object /// /// string xml file to load and deserialize /// Output SelectWithinCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out SelectWithinCommandType obj, out System.Exception exception) { exception = null; obj = default(SelectWithinCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out SelectWithinCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static SelectWithinCommandType 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 SelectWithinCommandType object /// public virtual SelectWithinCommandType Clone() { return ((SelectWithinCommandType)(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 BufferCommandType : TargetedCommandType, 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(BufferCommandType)); } 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 BufferCommandType 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 BufferCommandType object /// /// string workflow markup to deserialize /// Output BufferCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out BufferCommandType obj, out System.Exception exception) { exception = null; obj = default(BufferCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out BufferCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static BufferCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((BufferCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current BufferCommandType 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 BufferCommandType object /// /// string xml file to load and deserialize /// Output BufferCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out BufferCommandType obj, out System.Exception exception) { exception = null; obj = default(BufferCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out BufferCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static BufferCommandType 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 BufferCommandType object /// public virtual BufferCommandType Clone() { return ((BufferCommandType)(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 InvokeURLCommandType : TargetedCommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string uRLField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList layerSetField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList additionalParameterField; [EditorBrowsable(EditorBrowsableState.Never)] private bool disableIfSelectionEmptyField; private static System.Xml.Serialization.XmlSerializer serializer; public string URL { get { return this.uRLField; } set { if ((this.uRLField != null)) { if ((uRLField.Equals(value) != true)) { this.uRLField = value; this.OnPropertyChanged("URL"); } } else { this.uRLField = value; this.OnPropertyChanged("URL"); } } } [System.Xml.Serialization.XmlArrayItemAttribute("Layer", IsNullable=false)] public BindingList LayerSet { get { return this.layerSetField; } set { if ((this.layerSetField != null)) { if ((layerSetField.Equals(value) != true)) { this.layerSetField = value; this.OnPropertyChanged("LayerSet"); } } else { this.layerSetField = value; this.OnPropertyChanged("LayerSet"); } } } [System.Xml.Serialization.XmlElementAttribute("AdditionalParameter")] public BindingList AdditionalParameter { get { return this.additionalParameterField; } set { if ((this.additionalParameterField != null)) { if ((additionalParameterField.Equals(value) != true)) { this.additionalParameterField = value; this.OnPropertyChanged("AdditionalParameter"); } } else { this.additionalParameterField = value; this.OnPropertyChanged("AdditionalParameter"); } } } public bool DisableIfSelectionEmpty { get { return this.disableIfSelectionEmptyField; } set { if ((disableIfSelectionEmptyField.Equals(value) != true)) { this.disableIfSelectionEmptyField = value; this.OnPropertyChanged("DisableIfSelectionEmpty"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(InvokeURLCommandType)); } 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 InvokeURLCommandType 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 InvokeURLCommandType object /// /// string workflow markup to deserialize /// Output InvokeURLCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out InvokeURLCommandType obj, out System.Exception exception) { exception = null; obj = default(InvokeURLCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out InvokeURLCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static InvokeURLCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((InvokeURLCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current InvokeURLCommandType 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 InvokeURLCommandType object /// /// string xml file to load and deserialize /// Output InvokeURLCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out InvokeURLCommandType obj, out System.Exception exception) { exception = null; obj = default(InvokeURLCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out InvokeURLCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static InvokeURLCommandType 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 InvokeURLCommandType object /// public virtual InvokeURLCommandType Clone() { return ((InvokeURLCommandType)(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 SearchCommandType : TargetedCommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string layerField; [EditorBrowsable(EditorBrowsableState.Never)] private string promptField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList resultColumnsField; [EditorBrowsable(EditorBrowsableState.Never)] private string filterField; [EditorBrowsable(EditorBrowsableState.Never)] private string matchLimitField; private static System.Xml.Serialization.XmlSerializer serializer; public string Layer { get { return this.layerField; } set { if ((this.layerField != null)) { if ((layerField.Equals(value) != true)) { this.layerField = value; this.OnPropertyChanged("Layer"); } } else { this.layerField = value; this.OnPropertyChanged("Layer"); } } } public string Prompt { get { return this.promptField; } set { if ((this.promptField != null)) { if ((promptField.Equals(value) != true)) { this.promptField = value; this.OnPropertyChanged("Prompt"); } } else { this.promptField = value; this.OnPropertyChanged("Prompt"); } } } [System.Xml.Serialization.XmlArrayItemAttribute("Column", IsNullable=false)] public BindingList ResultColumns { get { return this.resultColumnsField; } set { if ((this.resultColumnsField != null)) { if ((resultColumnsField.Equals(value) != true)) { this.resultColumnsField = value; this.OnPropertyChanged("ResultColumns"); } } else { this.resultColumnsField = value; this.OnPropertyChanged("ResultColumns"); } } } public string Filter { get { return this.filterField; } set { if ((this.filterField != null)) { if ((filterField.Equals(value) != true)) { this.filterField = value; this.OnPropertyChanged("Filter"); } } else { this.filterField = value; this.OnPropertyChanged("Filter"); } } } [System.Xml.Serialization.XmlElementAttribute(DataType="integer")] public string MatchLimit { get { return this.matchLimitField; } set { if ((this.matchLimitField != null)) { if ((matchLimitField.Equals(value) != true)) { this.matchLimitField = value; this.OnPropertyChanged("MatchLimit"); } } else { this.matchLimitField = value; this.OnPropertyChanged("MatchLimit"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(SearchCommandType)); } 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 SearchCommandType 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 SearchCommandType object /// /// string workflow markup to deserialize /// Output SearchCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out SearchCommandType obj, out System.Exception exception) { exception = null; obj = default(SearchCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out SearchCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static SearchCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((SearchCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current SearchCommandType 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 SearchCommandType object /// /// string xml file to load and deserialize /// Output SearchCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out SearchCommandType obj, out System.Exception exception) { exception = null; obj = default(SearchCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out SearchCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static SearchCommandType 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 SearchCommandType object /// public virtual SearchCommandType Clone() { return ((SearchCommandType)(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 BasicCommandType : CommandType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BasicCommandActionType actionField; private static System.Xml.Serialization.XmlSerializer serializer; public BasicCommandActionType Action { get { return this.actionField; } set { if ((actionField.Equals(value) != true)) { this.actionField = value; this.OnPropertyChanged("Action"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(BasicCommandType)); } 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 BasicCommandType 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 BasicCommandType object /// /// string workflow markup to deserialize /// Output BasicCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out BasicCommandType obj, out System.Exception exception) { exception = null; obj = default(BasicCommandType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out BasicCommandType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static BasicCommandType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((BasicCommandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current BasicCommandType 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 BasicCommandType object /// /// string xml file to load and deserialize /// Output BasicCommandType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out BasicCommandType obj, out System.Exception exception) { exception = null; obj = default(BasicCommandType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out BasicCommandType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static BasicCommandType 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 BasicCommandType object /// public virtual BasicCommandType Clone() { return ((BasicCommandType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(CommandItemType))] [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 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 CommandItemType : UIItemType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string commandField; private static System.Xml.Serialization.XmlSerializer serializer; public string Command { get { return this.commandField; } set { if ((this.commandField != null)) { if ((commandField.Equals(value) != true)) { this.commandField = value; this.OnPropertyChanged("Command"); } } else { this.commandField = value; this.OnPropertyChanged("Command"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(CommandItemType)); } 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 CommandItemType 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 CommandItemType object /// /// string workflow markup to deserialize /// Output CommandItemType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out CommandItemType obj, out System.Exception exception) { exception = null; obj = default(CommandItemType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out CommandItemType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static CommandItemType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((CommandItemType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current CommandItemType 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 CommandItemType object /// /// string xml file to load and deserialize /// Output CommandItemType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out CommandItemType obj, out System.Exception exception) { exception = null; obj = default(CommandItemType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out CommandItemType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static CommandItemType 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 CommandItemType object /// public virtual CommandItemType Clone() { return ((CommandItemType)(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 descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string imageURLField; [EditorBrowsable(EditorBrowsableState.Never)] private string disabledImageURLField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList subItemField; 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 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 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 DisabledImageURL { get { return this.disabledImageURLField; } set { if ((this.disabledImageURLField != null)) { if ((disabledImageURLField.Equals(value) != true)) { this.disabledImageURLField = value; this.OnPropertyChanged("DisabledImageURL"); } } else { this.disabledImageURLField = value; this.OnPropertyChanged("DisabledImageURL"); } } } [System.Xml.Serialization.XmlElementAttribute("SubItem")] public BindingList SubItem { get { return this.subItemField; } set { if ((this.subItemField != null)) { if ((subItemField.Equals(value) != true)) { this.subItemField = value; this.OnPropertyChanged("SubItem"); } } else { this.subItemField = value; this.OnPropertyChanged("SubItem"); } } } 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.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 TaskButtonType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private string nameField; [EditorBrowsable(EditorBrowsableState.Never)] private string tooltipField; [EditorBrowsable(EditorBrowsableState.Never)] private string descriptionField; [EditorBrowsable(EditorBrowsableState.Never)] private string imageURLField; [EditorBrowsable(EditorBrowsableState.Never)] private string disabledImageURLField; 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 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 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 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 DisabledImageURL { get { return this.disabledImageURLField; } set { if ((this.disabledImageURLField != null)) { if ((disabledImageURLField.Equals(value) != true)) { this.disabledImageURLField = value; this.OnPropertyChanged("DisabledImageURL"); } } else { this.disabledImageURLField = value; this.OnPropertyChanged("DisabledImageURL"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(TaskButtonType)); } 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 TaskButtonType 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 TaskButtonType object /// /// string workflow markup to deserialize /// Output TaskButtonType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out TaskButtonType obj, out System.Exception exception) { exception = null; obj = default(TaskButtonType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out TaskButtonType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static TaskButtonType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((TaskButtonType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current TaskButtonType 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 TaskButtonType object /// /// string xml file to load and deserialize /// Output TaskButtonType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out TaskButtonType obj, out System.Exception exception) { exception = null; obj = default(TaskButtonType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out TaskButtonType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static TaskButtonType 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 TaskButtonType object /// public virtual TaskButtonType Clone() { return ((TaskButtonType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(ZoomControlType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(StatusBarType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContextMenuType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ToolBarType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TaskBarType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(WebLayoutResizableControlType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TaskPaneType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InformationPaneType))] [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 WebLayoutControlType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private bool visibleField; private static System.Xml.Serialization.XmlSerializer serializer; public bool Visible { get { return this.visibleField; } set { if ((visibleField.Equals(value) != true)) { this.visibleField = value; this.OnPropertyChanged("Visible"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(WebLayoutControlType)); } 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 WebLayoutControlType 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 WebLayoutControlType object /// /// string workflow markup to deserialize /// Output WebLayoutControlType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out WebLayoutControlType obj, out System.Exception exception) { exception = null; obj = default(WebLayoutControlType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out WebLayoutControlType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static WebLayoutControlType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((WebLayoutControlType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current WebLayoutControlType 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 WebLayoutControlType object /// /// string xml file to load and deserialize /// Output WebLayoutControlType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out WebLayoutControlType obj, out System.Exception exception) { exception = null; obj = default(WebLayoutControlType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out WebLayoutControlType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static WebLayoutControlType 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 WebLayoutControlType object /// public virtual WebLayoutControlType Clone() { return ((WebLayoutControlType)(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 ZoomControlType : WebLayoutControlType, 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(ZoomControlType)); } 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 ZoomControlType 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 ZoomControlType object /// /// string workflow markup to deserialize /// Output ZoomControlType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ZoomControlType obj, out System.Exception exception) { exception = null; obj = default(ZoomControlType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ZoomControlType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ZoomControlType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ZoomControlType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ZoomControlType 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 ZoomControlType object /// /// string xml file to load and deserialize /// Output ZoomControlType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ZoomControlType obj, out System.Exception exception) { exception = null; obj = default(ZoomControlType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ZoomControlType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ZoomControlType 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 ZoomControlType object /// public virtual ZoomControlType Clone() { return ((ZoomControlType)(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 StatusBarType : WebLayoutControlType, 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(StatusBarType)); } 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 StatusBarType 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 StatusBarType object /// /// string workflow markup to deserialize /// Output StatusBarType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out StatusBarType obj, out System.Exception exception) { exception = null; obj = default(StatusBarType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out StatusBarType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static StatusBarType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((StatusBarType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current StatusBarType 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 StatusBarType object /// /// string xml file to load and deserialize /// Output StatusBarType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out StatusBarType obj, out System.Exception exception) { exception = null; obj = default(StatusBarType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out StatusBarType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static StatusBarType 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 StatusBarType object /// public virtual StatusBarType Clone() { return ((StatusBarType)(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 ContextMenuType : WebLayoutControlType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList menuItemField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("MenuItem")] public BindingList MenuItem { get { return this.menuItemField; } set { if ((this.menuItemField != null)) { if ((menuItemField.Equals(value) != true)) { this.menuItemField = value; this.OnPropertyChanged("MenuItem"); } } else { this.menuItemField = value; this.OnPropertyChanged("MenuItem"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ContextMenuType)); } 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 ContextMenuType 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 ContextMenuType object /// /// string workflow markup to deserialize /// Output ContextMenuType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ContextMenuType obj, out System.Exception exception) { exception = null; obj = default(ContextMenuType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ContextMenuType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ContextMenuType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ContextMenuType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ContextMenuType 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 ContextMenuType object /// /// string xml file to load and deserialize /// Output ContextMenuType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ContextMenuType obj, out System.Exception exception) { exception = null; obj = default(ContextMenuType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ContextMenuType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ContextMenuType 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 ContextMenuType object /// public virtual ContextMenuType Clone() { return ((ContextMenuType)(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 ToolBarType : WebLayoutControlType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList buttonField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("Button")] public BindingList Button { get { return this.buttonField; } set { if ((this.buttonField != null)) { if ((buttonField.Equals(value) != true)) { this.buttonField = value; this.OnPropertyChanged("Button"); } } else { this.buttonField = value; this.OnPropertyChanged("Button"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ToolBarType)); } 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 ToolBarType 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 ToolBarType object /// /// string workflow markup to deserialize /// Output ToolBarType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ToolBarType obj, out System.Exception exception) { exception = null; obj = default(ToolBarType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ToolBarType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ToolBarType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ToolBarType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ToolBarType 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 ToolBarType object /// /// string xml file to load and deserialize /// Output ToolBarType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ToolBarType obj, out System.Exception exception) { exception = null; obj = default(ToolBarType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ToolBarType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ToolBarType 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 ToolBarType object /// public virtual ToolBarType Clone() { return ((ToolBarType)(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 TaskBarType : WebLayoutControlType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private TaskButtonType homeField; [EditorBrowsable(EditorBrowsableState.Never)] private TaskButtonType forwardField; [EditorBrowsable(EditorBrowsableState.Never)] private TaskButtonType backField; [EditorBrowsable(EditorBrowsableState.Never)] private TaskButtonType tasksField; [EditorBrowsable(EditorBrowsableState.Never)] private BindingList menuButtonField; private static System.Xml.Serialization.XmlSerializer serializer; public TaskButtonType Home { get { return this.homeField; } set { if ((this.homeField != null)) { if ((homeField.Equals(value) != true)) { this.homeField = value; this.OnPropertyChanged("Home"); } } else { this.homeField = value; this.OnPropertyChanged("Home"); } } } public TaskButtonType Forward { get { return this.forwardField; } set { if ((this.forwardField != null)) { if ((forwardField.Equals(value) != true)) { this.forwardField = value; this.OnPropertyChanged("Forward"); } } else { this.forwardField = value; this.OnPropertyChanged("Forward"); } } } public TaskButtonType Back { get { return this.backField; } set { if ((this.backField != null)) { if ((backField.Equals(value) != true)) { this.backField = value; this.OnPropertyChanged("Back"); } } else { this.backField = value; this.OnPropertyChanged("Back"); } } } public TaskButtonType Tasks { get { return this.tasksField; } set { if ((this.tasksField != null)) { if ((tasksField.Equals(value) != true)) { this.tasksField = value; this.OnPropertyChanged("Tasks"); } } else { this.tasksField = value; this.OnPropertyChanged("Tasks"); } } } [System.Xml.Serialization.XmlElementAttribute("MenuButton")] public BindingList MenuButton { get { return this.menuButtonField; } set { if ((this.menuButtonField != null)) { if ((menuButtonField.Equals(value) != true)) { this.menuButtonField = value; this.OnPropertyChanged("MenuButton"); } } else { this.menuButtonField = value; this.OnPropertyChanged("MenuButton"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(TaskBarType)); } 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 TaskBarType 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 TaskBarType object /// /// string workflow markup to deserialize /// Output TaskBarType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out TaskBarType obj, out System.Exception exception) { exception = null; obj = default(TaskBarType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out TaskBarType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static TaskBarType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((TaskBarType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current TaskBarType 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 TaskBarType object /// /// string xml file to load and deserialize /// Output TaskBarType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out TaskBarType obj, out System.Exception exception) { exception = null; obj = default(TaskBarType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out TaskBarType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static TaskBarType 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 TaskBarType object /// public virtual TaskBarType Clone() { return ((TaskBarType)(this.MemberwiseClone())); } #endregion } [System.Xml.Serialization.XmlIncludeAttribute(typeof(TaskPaneType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(InformationPaneType))] [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 WebLayoutResizableControlType : WebLayoutControlType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private int widthField; private static System.Xml.Serialization.XmlSerializer serializer; public int Width { get { return this.widthField; } set { if ((widthField.Equals(value) != true)) { this.widthField = value; this.OnPropertyChanged("Width"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(WebLayoutResizableControlType)); } 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 WebLayoutResizableControlType 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 WebLayoutResizableControlType object /// /// string workflow markup to deserialize /// Output WebLayoutResizableControlType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out WebLayoutResizableControlType obj, out System.Exception exception) { exception = null; obj = default(WebLayoutResizableControlType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out WebLayoutResizableControlType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static WebLayoutResizableControlType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((WebLayoutResizableControlType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current WebLayoutResizableControlType 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 WebLayoutResizableControlType object /// /// string xml file to load and deserialize /// Output WebLayoutResizableControlType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out WebLayoutResizableControlType obj, out System.Exception exception) { exception = null; obj = default(WebLayoutResizableControlType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out WebLayoutResizableControlType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static WebLayoutResizableControlType 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 WebLayoutResizableControlType object /// public virtual WebLayoutResizableControlType Clone() { return ((WebLayoutResizableControlType)(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 TaskPaneType : WebLayoutResizableControlType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private TaskBarType taskBarField; [EditorBrowsable(EditorBrowsableState.Never)] private string initialTaskField; private static System.Xml.Serialization.XmlSerializer serializer; public TaskBarType TaskBar { get { return this.taskBarField; } set { if ((this.taskBarField != null)) { if ((taskBarField.Equals(value) != true)) { this.taskBarField = value; this.OnPropertyChanged("TaskBar"); } } else { this.taskBarField = value; this.OnPropertyChanged("TaskBar"); } } } public string InitialTask { get { return this.initialTaskField; } set { if ((this.initialTaskField != null)) { if ((initialTaskField.Equals(value) != true)) { this.initialTaskField = value; this.OnPropertyChanged("InitialTask"); } } else { this.initialTaskField = value; this.OnPropertyChanged("InitialTask"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(TaskPaneType)); } 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 TaskPaneType 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 TaskPaneType object /// /// string workflow markup to deserialize /// Output TaskPaneType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out TaskPaneType obj, out System.Exception exception) { exception = null; obj = default(TaskPaneType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out TaskPaneType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static TaskPaneType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((TaskPaneType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current TaskPaneType 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 TaskPaneType object /// /// string xml file to load and deserialize /// Output TaskPaneType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out TaskPaneType obj, out System.Exception exception) { exception = null; obj = default(TaskPaneType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out TaskPaneType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static TaskPaneType 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 TaskPaneType object /// public virtual TaskPaneType Clone() { return ((TaskPaneType)(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 InformationPaneType : WebLayoutResizableControlType, System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private bool legendVisibleField; [EditorBrowsable(EditorBrowsableState.Never)] private bool propertiesVisibleField; private static System.Xml.Serialization.XmlSerializer serializer; public bool LegendVisible { get { return this.legendVisibleField; } set { if ((legendVisibleField.Equals(value) != true)) { this.legendVisibleField = value; this.OnPropertyChanged("LegendVisible"); } } } public bool PropertiesVisible { get { return this.propertiesVisibleField; } set { if ((propertiesVisibleField.Equals(value) != true)) { this.propertiesVisibleField = value; this.OnPropertyChanged("PropertiesVisible"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(InformationPaneType)); } 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 InformationPaneType 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 InformationPaneType object /// /// string workflow markup to deserialize /// Output InformationPaneType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out InformationPaneType obj, out System.Exception exception) { exception = null; obj = default(InformationPaneType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out InformationPaneType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static InformationPaneType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((InformationPaneType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current InformationPaneType 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 InformationPaneType object /// /// string xml file to load and deserialize /// Output InformationPaneType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out InformationPaneType obj, out System.Exception exception) { exception = null; obj = default(InformationPaneType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out InformationPaneType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static InformationPaneType 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 InformationPaneType object /// public virtual InformationPaneType Clone() { return ((InformationPaneType)(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 CommandSetType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList commandField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("Command")] public BindingList Command { get { return this.commandField; } set { if ((this.commandField != null)) { if ((commandField.Equals(value) != true)) { this.commandField = value; this.OnPropertyChanged("Command"); } } else { this.commandField = value; this.OnPropertyChanged("Command"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(CommandSetType)); } 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 CommandSetType 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 CommandSetType object /// /// string workflow markup to deserialize /// Output CommandSetType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out CommandSetType obj, out System.Exception exception) { exception = null; obj = default(CommandSetType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out CommandSetType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static CommandSetType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((CommandSetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current CommandSetType 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 CommandSetType object /// /// string xml file to load and deserialize /// Output CommandSetType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out CommandSetType obj, out System.Exception exception) { exception = null; obj = default(CommandSetType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out CommandSetType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static CommandSetType 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 CommandSetType object /// public virtual CommandSetType Clone() { return ((CommandSetType)(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 LayerSetType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList layerField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("Layer")] public BindingList Layer { get { return this.layerField; } set { if ((this.layerField != null)) { if ((layerField.Equals(value) != true)) { this.layerField = value; this.OnPropertyChanged("Layer"); } } else { this.layerField = value; this.OnPropertyChanged("Layer"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(LayerSetType)); } 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 LayerSetType 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 LayerSetType object /// /// string workflow markup to deserialize /// Output LayerSetType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out LayerSetType obj, out System.Exception exception) { exception = null; obj = default(LayerSetType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out LayerSetType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static LayerSetType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((LayerSetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current LayerSetType 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 LayerSetType object /// /// string xml file to load and deserialize /// Output LayerSetType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out LayerSetType obj, out System.Exception exception) { exception = null; obj = default(LayerSetType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out LayerSetType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static LayerSetType 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 LayerSetType object /// public virtual LayerSetType Clone() { return ((LayerSetType)(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 ResultColumnSetType : System.ComponentModel.INotifyPropertyChanged { [EditorBrowsable(EditorBrowsableState.Never)] private BindingList columnField; private static System.Xml.Serialization.XmlSerializer serializer; [System.Xml.Serialization.XmlElementAttribute("Column")] public BindingList Column { get { return this.columnField; } set { if ((this.columnField != null)) { if ((columnField.Equals(value) != true)) { this.columnField = value; this.OnPropertyChanged("Column"); } } else { this.columnField = value; this.OnPropertyChanged("Column"); } } } private static System.Xml.Serialization.XmlSerializer Serializer { get { if ((serializer == null)) { serializer = new System.Xml.Serialization.XmlSerializer(typeof(ResultColumnSetType)); } 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 ResultColumnSetType 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 ResultColumnSetType object /// /// string workflow markup to deserialize /// Output ResultColumnSetType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool Deserialize(string xml, out ResultColumnSetType obj, out System.Exception exception) { exception = null; obj = default(ResultColumnSetType); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool Deserialize(string xml, out ResultColumnSetType obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); } public static ResultColumnSetType Deserialize(string xml) { System.IO.StringReader stringReader = null; try { stringReader = new System.IO.StringReader(xml); return ((ResultColumnSetType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose(); } } } /// /// Serializes current ResultColumnSetType 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 ResultColumnSetType object /// /// string xml file to load and deserialize /// Output ResultColumnSetType object /// output Exception value if deserialize failed /// true if this XmlSerializer can deserialize the object; otherwise, false public static bool LoadFromFile(string fileName, out ResultColumnSetType obj, out System.Exception exception) { exception = null; obj = default(ResultColumnSetType); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } } public static bool LoadFromFile(string fileName, out ResultColumnSetType obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); } public static ResultColumnSetType 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 ResultColumnSetType object /// public virtual ResultColumnSetType Clone() { return ((ResultColumnSetType)(this.MemberwiseClone())); } #endregion } }