#pragma warning disable 1591, 0114, 0108
// ------------------------------------------------------------------------------
//
// Generated by Xsd2Code. Version 3.3.0.33001
// OSGeo.MapGuide.ObjectModels.LayerDefinitionBindingListCSharpTrueFalseTrueTrueTrueFalseTrueFalseNet20SerializeDeserializeSaveToFileLoadFromFileTrueFalseFalseFalseFalse
//
// ------------------------------------------------------------------------------
namespace OSGeo.MapGuide.ObjectModels.LayerDefinition_2_3_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.LayerDefinition;
using OSGeo.MapGuide.ObjectModels.Common;
using OSGeo.MapGuide.ObjectModels.SymbolDefinition_1_1_0;
using OSGeo.MapGuide.ObjectModels.WatermarkDefinition_2_3_0;
///
/// The specification of the data source and stylization for a layer.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class LayerDefinition : LayerDefinitionType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string versionField;
private static System.Xml.Serialization.XmlSerializer serializer;
public LayerDefinition() {
this.versionField = "2.3.0";
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public string version {
get {
return this.versionField;
}
set {
if ((this.versionField != null)) {
if ((versionField.Equals(value) != true)) {
this.versionField = value;
this.OnPropertyChanged("version");
}
}
else {
this.versionField = value;
this.OnPropertyChanged("version");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(LayerDefinition));
}
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 LayerDefinition 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 LayerDefinition object
///
/// string workflow markup to deserialize
/// Output LayerDefinition object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out LayerDefinition obj, out System.Exception exception) {
exception = null;
obj = default(LayerDefinition);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out LayerDefinition obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static LayerDefinition Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((LayerDefinition)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current LayerDefinition 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 LayerDefinition object
///
/// string xml file to load and deserialize
/// Output LayerDefinition object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out LayerDefinition obj, out System.Exception exception) {
exception = null;
obj = default(LayerDefinition);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out LayerDefinition obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static LayerDefinition 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 LayerDefinition object
///
public virtual LayerDefinition Clone() {
return ((LayerDefinition)(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 LayerDefinitionType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private BaseLayerDefinitionType itemField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("DrawingLayerDefinition", typeof(DrawingLayerDefinitionType))]
[System.Xml.Serialization.XmlElementAttribute("GridLayerDefinition", typeof(GridLayerDefinitionType))]
[System.Xml.Serialization.XmlElementAttribute("VectorLayerDefinition", typeof(VectorLayerDefinitionType))]
public BaseLayerDefinitionType Item {
get {
return this.itemField;
}
set {
if ((this.itemField != null)) {
if ((itemField.Equals(value) != true)) {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
else {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(LayerDefinitionType));
}
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 LayerDefinitionType 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 LayerDefinitionType object
///
/// string workflow markup to deserialize
/// Output LayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out LayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(LayerDefinitionType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out LayerDefinitionType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static LayerDefinitionType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((LayerDefinitionType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current LayerDefinitionType 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 LayerDefinitionType object
///
/// string xml file to load and deserialize
/// Output LayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out LayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(LayerDefinitionType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out LayerDefinitionType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static LayerDefinitionType 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 LayerDefinitionType object
///
public virtual LayerDefinitionType Clone() {
return ((LayerDefinitionType)(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 DrawingLayerDefinitionType : BaseLayerDefinitionType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string sheetField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string layerFilterField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double minScaleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double maxScaleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool maxScaleFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public DrawingLayerDefinitionType() {
this.minScaleField = 0;
}
public string Sheet {
get {
return this.sheetField;
}
set {
if ((this.sheetField != null)) {
if ((sheetField.Equals(value) != true)) {
this.sheetField = value;
this.OnPropertyChanged("Sheet");
}
}
else {
this.sheetField = value;
this.OnPropertyChanged("Sheet");
}
}
}
public string LayerFilter {
get {
return this.layerFilterField;
}
set {
if ((this.layerFilterField != null)) {
if ((layerFilterField.Equals(value) != true)) {
this.layerFilterField = value;
this.OnPropertyChanged("LayerFilter");
}
}
else {
this.layerFilterField = value;
this.OnPropertyChanged("LayerFilter");
}
}
}
[System.ComponentModel.DefaultValueAttribute(0)]
public double MinScale {
get {
return this.minScaleField;
}
set {
if ((minScaleField.Equals(value) != true)) {
this.minScaleField = value;
this.OnPropertyChanged("MinScale");
}
}
}
public double MaxScale {
get {
return this.maxScaleField;
}
set {
if ((maxScaleField.Equals(value) != true)) {
this.maxScaleField = value;
this.OnPropertyChanged("MaxScale");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool MaxScaleSpecified {
get {
return this.maxScaleFieldSpecified;
}
set {
if ((maxScaleFieldSpecified.Equals(value) != true)) {
this.maxScaleFieldSpecified = value;
this.OnPropertyChanged("MaxScaleSpecified");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(DrawingLayerDefinitionType));
}
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 DrawingLayerDefinitionType 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 DrawingLayerDefinitionType object
///
/// string workflow markup to deserialize
/// Output DrawingLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out DrawingLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(DrawingLayerDefinitionType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out DrawingLayerDefinitionType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static DrawingLayerDefinitionType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((DrawingLayerDefinitionType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current DrawingLayerDefinitionType 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 DrawingLayerDefinitionType object
///
/// string xml file to load and deserialize
/// Output DrawingLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out DrawingLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(DrawingLayerDefinitionType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out DrawingLayerDefinitionType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static DrawingLayerDefinitionType 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 DrawingLayerDefinitionType object
///
public virtual DrawingLayerDefinitionType Clone() {
return ((DrawingLayerDefinitionType)(this.MemberwiseClone()));
}
#endregion
}
[System.Xml.Serialization.XmlIncludeAttribute(typeof(GridLayerDefinitionType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(VectorLayerDefinitionType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DrawingLayerDefinitionType))]
[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 BaseLayerDefinitionType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string resourceIdField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double opacityField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList watermarksField;
private static System.Xml.Serialization.XmlSerializer serializer;
public BaseLayerDefinitionType() {
this.opacityField = 1;
this.watermarksField = new BindingList();
}
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");
}
}
}
[System.ComponentModel.DefaultValueAttribute(1)]
public double Opacity {
get {
return this.opacityField;
}
set {
if ((opacityField.Equals(value) != true)) {
this.opacityField = value;
this.OnPropertyChanged("Opacity");
}
}
}
[System.Xml.Serialization.XmlArrayItemAttribute("Watermark", IsNullable = false)]
public BindingList Watermarks
{
get
{
return this.watermarksField;
}
set
{
if ((this.watermarksField != null))
{
if ((watermarksField.Equals(value) != true))
{
this.watermarksField = value;
this.OnPropertyChanged("Watermarks");
}
}
else
{
this.watermarksField = value;
this.OnPropertyChanged("Watermarks");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(BaseLayerDefinitionType));
}
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 BaseLayerDefinitionType 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 BaseLayerDefinitionType object
///
/// string workflow markup to deserialize
/// Output BaseLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out BaseLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(BaseLayerDefinitionType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out BaseLayerDefinitionType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static BaseLayerDefinitionType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((BaseLayerDefinitionType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current BaseLayerDefinitionType 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 BaseLayerDefinitionType object
///
/// string xml file to load and deserialize
/// Output BaseLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out BaseLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(BaseLayerDefinitionType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out BaseLayerDefinitionType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static BaseLayerDefinitionType 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 BaseLayerDefinitionType object
///
public virtual BaseLayerDefinitionType Clone() {
return ((BaseLayerDefinitionType)(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 GridLayerDefinitionType : BaseLayerDefinitionType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string featureNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string geometryField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string filterField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList gridScaleRangeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string FeatureName {
get {
return this.featureNameField;
}
set {
if ((this.featureNameField != null)) {
if ((featureNameField.Equals(value) != true)) {
this.featureNameField = value;
this.OnPropertyChanged("FeatureName");
}
}
else {
this.featureNameField = value;
this.OnPropertyChanged("FeatureName");
}
}
}
public string Geometry {
get {
return this.geometryField;
}
set {
if ((this.geometryField != null)) {
if ((geometryField.Equals(value) != true)) {
this.geometryField = value;
this.OnPropertyChanged("Geometry");
}
}
else {
this.geometryField = value;
this.OnPropertyChanged("Geometry");
}
}
}
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("GridScaleRange")]
public BindingList GridScaleRange {
get {
return this.gridScaleRangeField;
}
set {
if ((this.gridScaleRangeField != null)) {
if ((gridScaleRangeField.Equals(value) != true)) {
this.gridScaleRangeField = value;
this.OnPropertyChanged("GridScaleRange");
}
}
else {
this.gridScaleRangeField = value;
this.OnPropertyChanged("GridScaleRange");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridLayerDefinitionType));
}
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 GridLayerDefinitionType 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 GridLayerDefinitionType object
///
/// string workflow markup to deserialize
/// Output GridLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(GridLayerDefinitionType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridLayerDefinitionType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridLayerDefinitionType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridLayerDefinitionType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridLayerDefinitionType 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 GridLayerDefinitionType object
///
/// string xml file to load and deserialize
/// Output GridLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(GridLayerDefinitionType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridLayerDefinitionType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridLayerDefinitionType 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 GridLayerDefinitionType object
///
public virtual GridLayerDefinitionType Clone() {
return ((GridLayerDefinitionType)(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 GridScaleRangeType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private double minScaleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double maxScaleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool maxScaleFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private GridSurfaceStyleType surfaceStyleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private GridColorStyleType colorStyleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double rebuildFactorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public GridScaleRangeType() {
this.minScaleField = 0;
}
[System.ComponentModel.DefaultValueAttribute(0)]
public double MinScale {
get {
return this.minScaleField;
}
set {
if ((minScaleField.Equals(value) != true)) {
this.minScaleField = value;
this.OnPropertyChanged("MinScale");
}
}
}
public double MaxScale {
get {
return this.maxScaleField;
}
set {
if ((maxScaleField.Equals(value) != true)) {
this.maxScaleField = value;
this.OnPropertyChanged("MaxScale");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool MaxScaleSpecified {
get {
return this.maxScaleFieldSpecified;
}
set {
if ((maxScaleFieldSpecified.Equals(value) != true)) {
this.maxScaleFieldSpecified = value;
this.OnPropertyChanged("MaxScaleSpecified");
}
}
}
public GridSurfaceStyleType SurfaceStyle {
get {
return this.surfaceStyleField;
}
set {
if ((this.surfaceStyleField != null)) {
if ((surfaceStyleField.Equals(value) != true)) {
this.surfaceStyleField = value;
this.OnPropertyChanged("SurfaceStyle");
}
}
else {
this.surfaceStyleField = value;
this.OnPropertyChanged("SurfaceStyle");
}
}
}
public GridColorStyleType ColorStyle {
get {
return this.colorStyleField;
}
set {
if ((this.colorStyleField != null)) {
if ((colorStyleField.Equals(value) != true)) {
this.colorStyleField = value;
this.OnPropertyChanged("ColorStyle");
}
}
else {
this.colorStyleField = value;
this.OnPropertyChanged("ColorStyle");
}
}
}
public double RebuildFactor {
get {
return this.rebuildFactorField;
}
set {
if ((rebuildFactorField.Equals(value) != true)) {
this.rebuildFactorField = value;
this.OnPropertyChanged("RebuildFactor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridScaleRangeType));
}
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 GridScaleRangeType 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 GridScaleRangeType object
///
/// string workflow markup to deserialize
/// Output GridScaleRangeType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridScaleRangeType obj, out System.Exception exception) {
exception = null;
obj = default(GridScaleRangeType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridScaleRangeType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridScaleRangeType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridScaleRangeType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridScaleRangeType 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 GridScaleRangeType object
///
/// string xml file to load and deserialize
/// Output GridScaleRangeType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridScaleRangeType obj, out System.Exception exception) {
exception = null;
obj = default(GridScaleRangeType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridScaleRangeType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridScaleRangeType 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 GridScaleRangeType object
///
public virtual GridScaleRangeType Clone() {
return ((GridScaleRangeType)(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 GridSurfaceStyleType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string bandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double zeroValueField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double scaleFactorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string defaultColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public GridSurfaceStyleType() {
this.zeroValueField = 0;
this.scaleFactorField = 1;
}
public string Band {
get {
return this.bandField;
}
set {
if ((this.bandField != null)) {
if ((bandField.Equals(value) != true)) {
this.bandField = value;
this.OnPropertyChanged("Band");
}
}
else {
this.bandField = value;
this.OnPropertyChanged("Band");
}
}
}
[System.ComponentModel.DefaultValueAttribute(0)]
public double ZeroValue {
get {
return this.zeroValueField;
}
set {
if ((zeroValueField.Equals(value) != true)) {
this.zeroValueField = value;
this.OnPropertyChanged("ZeroValue");
}
}
}
[System.ComponentModel.DefaultValueAttribute(1)]
public double ScaleFactor {
get {
return this.scaleFactorField;
}
set {
if ((scaleFactorField.Equals(value) != true)) {
this.scaleFactorField = value;
this.OnPropertyChanged("ScaleFactor");
}
}
}
public string DefaultColor {
get {
return this.defaultColorField;
}
set {
if ((this.defaultColorField != null)) {
if ((defaultColorField.Equals(value) != true)) {
this.defaultColorField = value;
this.OnPropertyChanged("DefaultColor");
}
}
else {
this.defaultColorField = value;
this.OnPropertyChanged("DefaultColor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridSurfaceStyleType));
}
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 GridSurfaceStyleType 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 GridSurfaceStyleType object
///
/// string workflow markup to deserialize
/// Output GridSurfaceStyleType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridSurfaceStyleType obj, out System.Exception exception) {
exception = null;
obj = default(GridSurfaceStyleType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridSurfaceStyleType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridSurfaceStyleType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridSurfaceStyleType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridSurfaceStyleType 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 GridSurfaceStyleType object
///
/// string xml file to load and deserialize
/// Output GridSurfaceStyleType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridSurfaceStyleType obj, out System.Exception exception) {
exception = null;
obj = default(GridSurfaceStyleType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridSurfaceStyleType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridSurfaceStyleType 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 GridSurfaceStyleType object
///
public virtual GridSurfaceStyleType Clone() {
return ((GridSurfaceStyleType)(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 GridColorStyleType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private HillShadeType hillShadeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private object transparencyColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double brightnessFactorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double contrastFactorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList colorRuleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public GridColorStyleType() {
this.brightnessFactorField = 0;
this.contrastFactorField = 0;
}
public HillShadeType HillShade {
get {
return this.hillShadeField;
}
set {
if ((this.hillShadeField != null)) {
if ((hillShadeField.Equals(value) != true)) {
this.hillShadeField = value;
this.OnPropertyChanged("HillShade");
}
}
else {
this.hillShadeField = value;
this.OnPropertyChanged("HillShade");
}
}
}
public object TransparencyColor {
get {
return this.transparencyColorField;
}
set {
if ((this.transparencyColorField != null)) {
if ((transparencyColorField.Equals(value) != true)) {
this.transparencyColorField = value;
this.OnPropertyChanged("TransparencyColor");
}
}
else {
this.transparencyColorField = value;
this.OnPropertyChanged("TransparencyColor");
}
}
}
[System.ComponentModel.DefaultValueAttribute(0)]
public double BrightnessFactor {
get {
return this.brightnessFactorField;
}
set {
if ((brightnessFactorField.Equals(value) != true)) {
this.brightnessFactorField = value;
this.OnPropertyChanged("BrightnessFactor");
}
}
}
[System.ComponentModel.DefaultValueAttribute(0)]
public double ContrastFactor {
get {
return this.contrastFactorField;
}
set {
if ((contrastFactorField.Equals(value) != true)) {
this.contrastFactorField = value;
this.OnPropertyChanged("ContrastFactor");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("ColorRule")]
public BindingList ColorRule {
get {
return this.colorRuleField;
}
set {
if ((this.colorRuleField != null)) {
if ((colorRuleField.Equals(value) != true)) {
this.colorRuleField = value;
this.OnPropertyChanged("ColorRule");
}
}
else {
this.colorRuleField = value;
this.OnPropertyChanged("ColorRule");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridColorStyleType));
}
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 GridColorStyleType 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 GridColorStyleType object
///
/// string workflow markup to deserialize
/// Output GridColorStyleType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridColorStyleType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorStyleType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridColorStyleType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridColorStyleType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridColorStyleType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridColorStyleType 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 GridColorStyleType object
///
/// string xml file to load and deserialize
/// Output GridColorStyleType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridColorStyleType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorStyleType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridColorStyleType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridColorStyleType 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 GridColorStyleType object
///
public virtual GridColorStyleType Clone() {
return ((GridColorStyleType)(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 HillShadeType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string bandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double azimuthField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double altitudeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double scaleFactorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public HillShadeType() {
this.scaleFactorField = 1;
}
public string Band {
get {
return this.bandField;
}
set {
if ((this.bandField != null)) {
if ((bandField.Equals(value) != true)) {
this.bandField = value;
this.OnPropertyChanged("Band");
}
}
else {
this.bandField = value;
this.OnPropertyChanged("Band");
}
}
}
public double Azimuth {
get {
return this.azimuthField;
}
set {
if ((azimuthField.Equals(value) != true)) {
this.azimuthField = value;
this.OnPropertyChanged("Azimuth");
}
}
}
public double Altitude {
get {
return this.altitudeField;
}
set {
if ((altitudeField.Equals(value) != true)) {
this.altitudeField = value;
this.OnPropertyChanged("Altitude");
}
}
}
[System.ComponentModel.DefaultValueAttribute(1)]
public double ScaleFactor {
get {
return this.scaleFactorField;
}
set {
if ((scaleFactorField.Equals(value) != true)) {
this.scaleFactorField = value;
this.OnPropertyChanged("ScaleFactor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(HillShadeType));
}
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 HillShadeType 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 HillShadeType object
///
/// string workflow markup to deserialize
/// Output HillShadeType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out HillShadeType obj, out System.Exception exception) {
exception = null;
obj = default(HillShadeType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out HillShadeType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static HillShadeType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((HillShadeType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current HillShadeType 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 HillShadeType object
///
/// string xml file to load and deserialize
/// Output HillShadeType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out HillShadeType obj, out System.Exception exception) {
exception = null;
obj = default(HillShadeType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out HillShadeType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static HillShadeType 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 HillShadeType object
///
public virtual HillShadeType Clone() {
return ((HillShadeType)(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 GridColorRuleType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string legendLabelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string filterField;
[EditorBrowsable(EditorBrowsableState.Never)]
private TextSymbolType labelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private GridColorType colorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string LegendLabel {
get {
return this.legendLabelField;
}
set {
if ((this.legendLabelField != null)) {
if ((legendLabelField.Equals(value) != true)) {
this.legendLabelField = value;
this.OnPropertyChanged("LegendLabel");
}
}
else {
this.legendLabelField = value;
this.OnPropertyChanged("LegendLabel");
}
}
}
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");
}
}
}
public TextSymbolType 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 GridColorType Color {
get {
return this.colorField;
}
set {
if ((this.colorField != null)) {
if ((colorField.Equals(value) != true)) {
this.colorField = value;
this.OnPropertyChanged("Color");
}
}
else {
this.colorField = value;
this.OnPropertyChanged("Color");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridColorRuleType));
}
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 GridColorRuleType 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 GridColorRuleType object
///
/// string workflow markup to deserialize
/// Output GridColorRuleType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridColorRuleType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorRuleType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridColorRuleType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridColorRuleType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridColorRuleType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridColorRuleType 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 GridColorRuleType object
///
/// string xml file to load and deserialize
/// Output GridColorRuleType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridColorRuleType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorRuleType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridColorRuleType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridColorRuleType 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 GridColorRuleType object
///
public virtual GridColorRuleType Clone() {
return ((GridColorRuleType)(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 TextSymbolType : SymbolType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string textField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string fontNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string foregroundColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string backgroundColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BackgroundStyleType backgroundStyleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string horizontalAlignmentField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string verticalAlignmentField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string boldField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string italicField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string underlinedField;
[EditorBrowsable(EditorBrowsableState.Never)]
private TextSymbolTypeAdvancedPlacement advancedPlacementField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public TextSymbolType() {
this.horizontalAlignmentField = "\'Center\'";
this.verticalAlignmentField = "\'Baseline\'";
this.boldField = "false";
this.italicField = "false";
this.underlinedField = "false";
}
public string Text {
get {
return this.textField;
}
set {
if ((this.textField != null)) {
if ((textField.Equals(value) != true)) {
this.textField = value;
this.OnPropertyChanged("Text");
}
}
else {
this.textField = value;
this.OnPropertyChanged("Text");
}
}
}
public string FontName {
get {
return this.fontNameField;
}
set {
if ((this.fontNameField != null)) {
if ((fontNameField.Equals(value) != true)) {
this.fontNameField = value;
this.OnPropertyChanged("FontName");
}
}
else {
this.fontNameField = value;
this.OnPropertyChanged("FontName");
}
}
}
public string ForegroundColor {
get {
return this.foregroundColorField;
}
set {
if ((this.foregroundColorField != null)) {
if ((foregroundColorField.Equals(value) != true)) {
this.foregroundColorField = value;
this.OnPropertyChanged("ForegroundColor");
}
}
else {
this.foregroundColorField = value;
this.OnPropertyChanged("ForegroundColor");
}
}
}
public string BackgroundColor {
get {
return this.backgroundColorField;
}
set {
if ((this.backgroundColorField != null)) {
if ((backgroundColorField.Equals(value) != true)) {
this.backgroundColorField = value;
this.OnPropertyChanged("BackgroundColor");
}
}
else {
this.backgroundColorField = value;
this.OnPropertyChanged("BackgroundColor");
}
}
}
public BackgroundStyleType BackgroundStyle {
get {
return this.backgroundStyleField;
}
set {
if ((backgroundStyleField.Equals(value) != true)) {
this.backgroundStyleField = value;
this.OnPropertyChanged("BackgroundStyle");
}
}
}
[System.ComponentModel.DefaultValueAttribute("\'Center\'")]
public string HorizontalAlignment {
get {
return this.horizontalAlignmentField;
}
set {
if ((this.horizontalAlignmentField != null)) {
if ((horizontalAlignmentField.Equals(value) != true)) {
this.horizontalAlignmentField = value;
this.OnPropertyChanged("HorizontalAlignment");
}
}
else {
this.horizontalAlignmentField = value;
this.OnPropertyChanged("HorizontalAlignment");
}
}
}
[System.ComponentModel.DefaultValueAttribute("\'Baseline\'")]
public string VerticalAlignment {
get {
return this.verticalAlignmentField;
}
set {
if ((this.verticalAlignmentField != null)) {
if ((verticalAlignmentField.Equals(value) != true)) {
this.verticalAlignmentField = value;
this.OnPropertyChanged("VerticalAlignment");
}
}
else {
this.verticalAlignmentField = value;
this.OnPropertyChanged("VerticalAlignment");
}
}
}
[System.ComponentModel.DefaultValueAttribute("false")]
public string Bold {
get {
return this.boldField;
}
set {
if ((this.boldField != null)) {
if ((boldField.Equals(value) != true)) {
this.boldField = value;
this.OnPropertyChanged("Bold");
}
}
else {
this.boldField = value;
this.OnPropertyChanged("Bold");
}
}
}
[System.ComponentModel.DefaultValueAttribute("false")]
public string Italic {
get {
return this.italicField;
}
set {
if ((this.italicField != null)) {
if ((italicField.Equals(value) != true)) {
this.italicField = value;
this.OnPropertyChanged("Italic");
}
}
else {
this.italicField = value;
this.OnPropertyChanged("Italic");
}
}
}
[System.ComponentModel.DefaultValueAttribute("false")]
public string Underlined {
get {
return this.underlinedField;
}
set {
if ((this.underlinedField != null)) {
if ((underlinedField.Equals(value) != true)) {
this.underlinedField = value;
this.OnPropertyChanged("Underlined");
}
}
else {
this.underlinedField = value;
this.OnPropertyChanged("Underlined");
}
}
}
public TextSymbolTypeAdvancedPlacement AdvancedPlacement {
get {
return this.advancedPlacementField;
}
set {
if ((this.advancedPlacementField != null)) {
if ((advancedPlacementField.Equals(value) != true)) {
this.advancedPlacementField = value;
this.OnPropertyChanged("AdvancedPlacement");
}
}
else {
this.advancedPlacementField = value;
this.OnPropertyChanged("AdvancedPlacement");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(TextSymbolType));
}
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 TextSymbolType 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 TextSymbolType object
///
/// string workflow markup to deserialize
/// Output TextSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out TextSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(TextSymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out TextSymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static TextSymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((TextSymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current TextSymbolType 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 TextSymbolType object
///
/// string xml file to load and deserialize
/// Output TextSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out TextSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(TextSymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out TextSymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static TextSymbolType 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 TextSymbolType object
///
public virtual TextSymbolType Clone() {
return ((TextSymbolType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class TextSymbolTypeAdvancedPlacement : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private double scaleLimitField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool scaleLimitFieldSpecified;
private static System.Xml.Serialization.XmlSerializer serializer;
public double ScaleLimit {
get {
return this.scaleLimitField;
}
set {
if ((scaleLimitField.Equals(value) != true)) {
this.scaleLimitField = value;
this.OnPropertyChanged("ScaleLimit");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ScaleLimitSpecified {
get {
return this.scaleLimitFieldSpecified;
}
set {
if ((scaleLimitFieldSpecified.Equals(value) != true)) {
this.scaleLimitFieldSpecified = value;
this.OnPropertyChanged("ScaleLimitSpecified");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(TextSymbolTypeAdvancedPlacement));
}
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 TextSymbolTypeAdvancedPlacement 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 TextSymbolTypeAdvancedPlacement object
///
/// string workflow markup to deserialize
/// Output TextSymbolTypeAdvancedPlacement object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out TextSymbolTypeAdvancedPlacement obj, out System.Exception exception) {
exception = null;
obj = default(TextSymbolTypeAdvancedPlacement);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out TextSymbolTypeAdvancedPlacement obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static TextSymbolTypeAdvancedPlacement Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((TextSymbolTypeAdvancedPlacement)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current TextSymbolTypeAdvancedPlacement 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 TextSymbolTypeAdvancedPlacement object
///
/// string xml file to load and deserialize
/// Output TextSymbolTypeAdvancedPlacement object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out TextSymbolTypeAdvancedPlacement obj, out System.Exception exception) {
exception = null;
obj = default(TextSymbolTypeAdvancedPlacement);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out TextSymbolTypeAdvancedPlacement obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static TextSymbolTypeAdvancedPlacement 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 TextSymbolTypeAdvancedPlacement object
///
public virtual TextSymbolTypeAdvancedPlacement Clone() {
return ((TextSymbolTypeAdvancedPlacement)(this.MemberwiseClone()));
}
#endregion
}
[System.Xml.Serialization.XmlIncludeAttribute(typeof(BlockSymbolType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(W2DSymbolType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(FontSymbolType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageSymbolType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(MarkSymbolType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(TextSymbolType))]
[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 SymbolType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private LengthUnitType unitField;
[EditorBrowsable(EditorBrowsableState.Never)]
private SizeContextType sizeContextField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string sizeXField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string sizeYField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string rotationField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool maintainAspectField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string insertionPointXField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double insertionPointYField;
private static System.Xml.Serialization.XmlSerializer serializer;
public SymbolType() {
this.rotationField = "0.0";
this.maintainAspectField = true;
this.insertionPointXField = "0.5";
this.insertionPointYField = 0.5;
}
public LengthUnitType Unit {
get {
return this.unitField;
}
set {
if ((unitField.Equals(value) != true)) {
this.unitField = value;
this.OnPropertyChanged("Unit");
}
}
}
public SizeContextType SizeContext {
get {
return this.sizeContextField;
}
set {
if ((sizeContextField.Equals(value) != true)) {
this.sizeContextField = value;
this.OnPropertyChanged("SizeContext");
}
}
}
public string SizeX {
get {
return this.sizeXField;
}
set {
if ((this.sizeXField != null)) {
if ((sizeXField.Equals(value) != true)) {
this.sizeXField = value;
this.OnPropertyChanged("SizeX");
}
}
else {
this.sizeXField = value;
this.OnPropertyChanged("SizeX");
}
}
}
public string SizeY {
get {
return this.sizeYField;
}
set {
if ((this.sizeYField != null)) {
if ((sizeYField.Equals(value) != true)) {
this.sizeYField = value;
this.OnPropertyChanged("SizeY");
}
}
else {
this.sizeYField = value;
this.OnPropertyChanged("SizeY");
}
}
}
[System.ComponentModel.DefaultValueAttribute("0.0")]
public string Rotation {
get {
return this.rotationField;
}
set {
if ((this.rotationField != null)) {
if ((rotationField.Equals(value) != true)) {
this.rotationField = value;
this.OnPropertyChanged("Rotation");
}
}
else {
this.rotationField = value;
this.OnPropertyChanged("Rotation");
}
}
}
[System.ComponentModel.DefaultValueAttribute(true)]
public bool MaintainAspect {
get {
return this.maintainAspectField;
}
set {
if ((maintainAspectField.Equals(value) != true)) {
this.maintainAspectField = value;
this.OnPropertyChanged("MaintainAspect");
}
}
}
[System.ComponentModel.DefaultValueAttribute("0.5")]
public string InsertionPointX {
get {
return this.insertionPointXField;
}
set {
if ((this.insertionPointXField != null)) {
if ((insertionPointXField.Equals(value) != true)) {
this.insertionPointXField = value;
this.OnPropertyChanged("InsertionPointX");
}
}
else {
this.insertionPointXField = value;
this.OnPropertyChanged("InsertionPointX");
}
}
}
[System.ComponentModel.DefaultValueAttribute(0.5)]
public double InsertionPointY {
get {
return this.insertionPointYField;
}
set {
if ((insertionPointYField.Equals(value) != true)) {
this.insertionPointYField = value;
this.OnPropertyChanged("InsertionPointY");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(SymbolType));
}
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 SymbolType 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 SymbolType object
///
/// string workflow markup to deserialize
/// Output SymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out SymbolType obj, out System.Exception exception) {
exception = null;
obj = default(SymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out SymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static SymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((SymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current SymbolType 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 SymbolType object
///
/// string xml file to load and deserialize
/// Output SymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out SymbolType obj, out System.Exception exception) {
exception = null;
obj = default(SymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out SymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static SymbolType 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 SymbolType object
///
public virtual SymbolType Clone() {
return ((SymbolType)(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 BlockSymbolType : SymbolType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string drawingNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string blockNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string blockColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string layerColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string DrawingName {
get {
return this.drawingNameField;
}
set {
if ((this.drawingNameField != null)) {
if ((drawingNameField.Equals(value) != true)) {
this.drawingNameField = value;
this.OnPropertyChanged("DrawingName");
}
}
else {
this.drawingNameField = value;
this.OnPropertyChanged("DrawingName");
}
}
}
public string BlockName {
get {
return this.blockNameField;
}
set {
if ((this.blockNameField != null)) {
if ((blockNameField.Equals(value) != true)) {
this.blockNameField = value;
this.OnPropertyChanged("BlockName");
}
}
else {
this.blockNameField = value;
this.OnPropertyChanged("BlockName");
}
}
}
public string BlockColor {
get {
return this.blockColorField;
}
set {
if ((this.blockColorField != null)) {
if ((blockColorField.Equals(value) != true)) {
this.blockColorField = value;
this.OnPropertyChanged("BlockColor");
}
}
else {
this.blockColorField = value;
this.OnPropertyChanged("BlockColor");
}
}
}
public string LayerColor {
get {
return this.layerColorField;
}
set {
if ((this.layerColorField != null)) {
if ((layerColorField.Equals(value) != true)) {
this.layerColorField = value;
this.OnPropertyChanged("LayerColor");
}
}
else {
this.layerColorField = value;
this.OnPropertyChanged("LayerColor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(BlockSymbolType));
}
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 BlockSymbolType 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 BlockSymbolType object
///
/// string workflow markup to deserialize
/// Output BlockSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out BlockSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(BlockSymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out BlockSymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static BlockSymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((BlockSymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current BlockSymbolType 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 BlockSymbolType object
///
/// string xml file to load and deserialize
/// Output BlockSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out BlockSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(BlockSymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out BlockSymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static BlockSymbolType 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 BlockSymbolType object
///
public virtual BlockSymbolType Clone() {
return ((BlockSymbolType)(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 W2DSymbolType : SymbolType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private W2DSymbolTypeW2DSymbol w2DSymbolField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string fillColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string lineColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string textColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public W2DSymbolTypeW2DSymbol W2DSymbol {
get {
return this.w2DSymbolField;
}
set {
if ((this.w2DSymbolField != null)) {
if ((w2DSymbolField.Equals(value) != true)) {
this.w2DSymbolField = value;
this.OnPropertyChanged("W2DSymbol");
}
}
else {
this.w2DSymbolField = value;
this.OnPropertyChanged("W2DSymbol");
}
}
}
public string FillColor {
get {
return this.fillColorField;
}
set {
if ((this.fillColorField != null)) {
if ((fillColorField.Equals(value) != true)) {
this.fillColorField = value;
this.OnPropertyChanged("FillColor");
}
}
else {
this.fillColorField = value;
this.OnPropertyChanged("FillColor");
}
}
}
public string LineColor {
get {
return this.lineColorField;
}
set {
if ((this.lineColorField != null)) {
if ((lineColorField.Equals(value) != true)) {
this.lineColorField = value;
this.OnPropertyChanged("LineColor");
}
}
else {
this.lineColorField = value;
this.OnPropertyChanged("LineColor");
}
}
}
public string TextColor {
get {
return this.textColorField;
}
set {
if ((this.textColorField != null)) {
if ((textColorField.Equals(value) != true)) {
this.textColorField = value;
this.OnPropertyChanged("TextColor");
}
}
else {
this.textColorField = value;
this.OnPropertyChanged("TextColor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(W2DSymbolType));
}
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 W2DSymbolType 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 W2DSymbolType object
///
/// string workflow markup to deserialize
/// Output W2DSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out W2DSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(W2DSymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out W2DSymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static W2DSymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((W2DSymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current W2DSymbolType 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 W2DSymbolType object
///
/// string xml file to load and deserialize
/// Output W2DSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out W2DSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(W2DSymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out W2DSymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static W2DSymbolType 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 W2DSymbolType object
///
public virtual W2DSymbolType Clone() {
return ((W2DSymbolType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class W2DSymbolTypeW2DSymbol : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string resourceIdField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string libraryItemNameField;
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");
}
}
}
public string LibraryItemName
{
get {
return this.libraryItemNameField;
}
set {
if ((this.libraryItemNameField != null)) {
if ((libraryItemNameField.Equals(value) != true)) {
this.libraryItemNameField = value;
this.OnPropertyChanged("LibraryItemName");
}
}
else {
this.libraryItemNameField = value;
this.OnPropertyChanged("LibraryItemName");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(W2DSymbolTypeW2DSymbol));
}
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 W2DSymbolTypeW2DSymbol 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 W2DSymbolTypeW2DSymbol object
///
/// string workflow markup to deserialize
/// Output W2DSymbolTypeW2DSymbol object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out W2DSymbolTypeW2DSymbol obj, out System.Exception exception) {
exception = null;
obj = default(W2DSymbolTypeW2DSymbol);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out W2DSymbolTypeW2DSymbol obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static W2DSymbolTypeW2DSymbol Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((W2DSymbolTypeW2DSymbol)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current W2DSymbolTypeW2DSymbol 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 W2DSymbolTypeW2DSymbol object
///
/// string xml file to load and deserialize
/// Output W2DSymbolTypeW2DSymbol object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out W2DSymbolTypeW2DSymbol obj, out System.Exception exception) {
exception = null;
obj = default(W2DSymbolTypeW2DSymbol);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out W2DSymbolTypeW2DSymbol obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static W2DSymbolTypeW2DSymbol 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 W2DSymbolTypeW2DSymbol object
///
public virtual W2DSymbolTypeW2DSymbol Clone() {
return ((W2DSymbolTypeW2DSymbol)(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 FontSymbolType : SymbolType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string fontNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string characterField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool boldField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool boldFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool italicField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool italicFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool underlinedField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool underlinedFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private string foregroundColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string FontName {
get {
return this.fontNameField;
}
set {
if ((this.fontNameField != null)) {
if ((fontNameField.Equals(value) != true)) {
this.fontNameField = value;
this.OnPropertyChanged("FontName");
}
}
else {
this.fontNameField = value;
this.OnPropertyChanged("FontName");
}
}
}
public string Character {
get {
return this.characterField;
}
set {
if ((this.characterField != null)) {
if ((characterField.Equals(value) != true)) {
this.characterField = value;
this.OnPropertyChanged("Character");
}
}
else {
this.characterField = value;
this.OnPropertyChanged("Character");
}
}
}
public bool Bold {
get {
return this.boldField;
}
set {
if ((boldField.Equals(value) != true)) {
this.boldField = value;
this.OnPropertyChanged("Bold");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool BoldSpecified {
get {
return this.boldFieldSpecified;
}
set {
if ((boldFieldSpecified.Equals(value) != true)) {
this.boldFieldSpecified = value;
this.OnPropertyChanged("BoldSpecified");
}
}
}
public bool Italic {
get {
return this.italicField;
}
set {
if ((italicField.Equals(value) != true)) {
this.italicField = value;
this.OnPropertyChanged("Italic");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool ItalicSpecified {
get {
return this.italicFieldSpecified;
}
set {
if ((italicFieldSpecified.Equals(value) != true)) {
this.italicFieldSpecified = value;
this.OnPropertyChanged("ItalicSpecified");
}
}
}
public bool Underlined {
get {
return this.underlinedField;
}
set {
if ((underlinedField.Equals(value) != true)) {
this.underlinedField = value;
this.OnPropertyChanged("Underlined");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool UnderlinedSpecified {
get {
return this.underlinedFieldSpecified;
}
set {
if ((underlinedFieldSpecified.Equals(value) != true)) {
this.underlinedFieldSpecified = value;
this.OnPropertyChanged("UnderlinedSpecified");
}
}
}
public string ForegroundColor {
get {
return this.foregroundColorField;
}
set {
if ((this.foregroundColorField != null)) {
if ((foregroundColorField.Equals(value) != true)) {
this.foregroundColorField = value;
this.OnPropertyChanged("ForegroundColor");
}
}
else {
this.foregroundColorField = value;
this.OnPropertyChanged("ForegroundColor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FontSymbolType));
}
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 FontSymbolType 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 FontSymbolType object
///
/// string workflow markup to deserialize
/// Output FontSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FontSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(FontSymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FontSymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FontSymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FontSymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FontSymbolType 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 FontSymbolType object
///
/// string xml file to load and deserialize
/// Output FontSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FontSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(FontSymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FontSymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FontSymbolType 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 FontSymbolType object
///
public virtual FontSymbolType Clone() {
return ((FontSymbolType)(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 ImageSymbolType : SymbolType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private object itemField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("Content", typeof(byte[]), DataType="hexBinary")]
[System.Xml.Serialization.XmlElementAttribute("Image", typeof(ImageSymbolTypeImage))]
public object Item {
get {
return this.itemField;
}
set {
if ((this.itemField != null)) {
if ((itemField.Equals(value) != true)) {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
else {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(ImageSymbolType));
}
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 ImageSymbolType 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 ImageSymbolType object
///
/// string workflow markup to deserialize
/// Output ImageSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out ImageSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(ImageSymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out ImageSymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static ImageSymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((ImageSymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current ImageSymbolType 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 ImageSymbolType object
///
/// string xml file to load and deserialize
/// Output ImageSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out ImageSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(ImageSymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out ImageSymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static ImageSymbolType 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 ImageSymbolType object
///
public virtual ImageSymbolType Clone() {
return ((ImageSymbolType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class ImageSymbolTypeImage : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private object resourceIdField;
[EditorBrowsable(EditorBrowsableState.Never)]
private object libraryItemNameField;
private static System.Xml.Serialization.XmlSerializer serializer;
public object 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");
}
}
}
public object LibraryItemName {
get {
return this.libraryItemNameField;
}
set {
if ((this.libraryItemNameField != null)) {
if ((libraryItemNameField.Equals(value) != true)) {
this.libraryItemNameField = value;
this.OnPropertyChanged("LibraryItemName");
}
}
else {
this.libraryItemNameField = value;
this.OnPropertyChanged("LibraryItemName");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(ImageSymbolTypeImage));
}
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 ImageSymbolTypeImage 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 ImageSymbolTypeImage object
///
/// string workflow markup to deserialize
/// Output ImageSymbolTypeImage object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out ImageSymbolTypeImage obj, out System.Exception exception) {
exception = null;
obj = default(ImageSymbolTypeImage);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out ImageSymbolTypeImage obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static ImageSymbolTypeImage Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((ImageSymbolTypeImage)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current ImageSymbolTypeImage 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 ImageSymbolTypeImage object
///
/// string xml file to load and deserialize
/// Output ImageSymbolTypeImage object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out ImageSymbolTypeImage obj, out System.Exception exception) {
exception = null;
obj = default(ImageSymbolTypeImage);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out ImageSymbolTypeImage obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static ImageSymbolTypeImage 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 ImageSymbolTypeImage object
///
public virtual ImageSymbolTypeImage Clone() {
return ((ImageSymbolTypeImage)(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 MarkSymbolType : SymbolType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private ShapeType shapeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private FillType fillField;
[EditorBrowsable(EditorBrowsableState.Never)]
private StrokeType edgeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public ShapeType Shape {
get {
return this.shapeField;
}
set {
if ((shapeField.Equals(value) != true)) {
this.shapeField = value;
this.OnPropertyChanged("Shape");
}
}
}
public FillType Fill {
get {
return this.fillField;
}
set {
if ((this.fillField != null)) {
if ((fillField.Equals(value) != true)) {
this.fillField = value;
this.OnPropertyChanged("Fill");
}
}
else {
this.fillField = value;
this.OnPropertyChanged("Fill");
}
}
}
public StrokeType Edge {
get {
return this.edgeField;
}
set {
if ((this.edgeField != null)) {
if ((edgeField.Equals(value) != true)) {
this.edgeField = value;
this.OnPropertyChanged("Edge");
}
}
else {
this.edgeField = value;
this.OnPropertyChanged("Edge");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MarkSymbolType));
}
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 MarkSymbolType 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 MarkSymbolType object
///
/// string workflow markup to deserialize
/// Output MarkSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MarkSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(MarkSymbolType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MarkSymbolType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MarkSymbolType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MarkSymbolType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MarkSymbolType 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 MarkSymbolType object
///
/// string xml file to load and deserialize
/// Output MarkSymbolType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MarkSymbolType obj, out System.Exception exception) {
exception = null;
obj = default(MarkSymbolType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MarkSymbolType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MarkSymbolType 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 MarkSymbolType object
///
public virtual MarkSymbolType Clone() {
return ((MarkSymbolType)(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 FillType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string fillPatternField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string foregroundColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string backgroundColorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string FillPattern {
get {
return this.fillPatternField;
}
set {
if ((this.fillPatternField != null)) {
if ((fillPatternField.Equals(value) != true)) {
this.fillPatternField = value;
this.OnPropertyChanged("FillPattern");
}
}
else {
this.fillPatternField = value;
this.OnPropertyChanged("FillPattern");
}
}
}
public string ForegroundColor {
get {
return this.foregroundColorField;
}
set {
if ((this.foregroundColorField != null)) {
if ((foregroundColorField.Equals(value) != true)) {
this.foregroundColorField = value;
this.OnPropertyChanged("ForegroundColor");
}
}
else {
this.foregroundColorField = value;
this.OnPropertyChanged("ForegroundColor");
}
}
}
public string BackgroundColor {
get {
return this.backgroundColorField;
}
set {
if ((this.backgroundColorField != null)) {
if ((backgroundColorField.Equals(value) != true)) {
this.backgroundColorField = value;
this.OnPropertyChanged("BackgroundColor");
}
}
else {
this.backgroundColorField = value;
this.OnPropertyChanged("BackgroundColor");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FillType));
}
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 FillType 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 FillType object
///
/// string workflow markup to deserialize
/// Output FillType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FillType obj, out System.Exception exception) {
exception = null;
obj = default(FillType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FillType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FillType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FillType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FillType 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 FillType object
///
/// string xml file to load and deserialize
/// Output FillType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FillType obj, out System.Exception exception) {
exception = null;
obj = default(FillType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FillType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FillType 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 FillType object
///
public virtual FillType Clone() {
return ((FillType)(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 StrokeType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string lineStyleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string thicknessField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string colorField;
[EditorBrowsable(EditorBrowsableState.Never)]
private LengthUnitType unitField;
[EditorBrowsable(EditorBrowsableState.Never)]
private SizeContextType sizeContextField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string LineStyle {
get {
return this.lineStyleField;
}
set {
if ((this.lineStyleField != null)) {
if ((lineStyleField.Equals(value) != true)) {
this.lineStyleField = value;
this.OnPropertyChanged("LineStyle");
}
}
else {
this.lineStyleField = value;
this.OnPropertyChanged("LineStyle");
}
}
}
public string Thickness {
get {
return this.thicknessField;
}
set {
if ((this.thicknessField != null)) {
if ((thicknessField.Equals(value) != true)) {
this.thicknessField = value;
this.OnPropertyChanged("Thickness");
}
}
else {
this.thicknessField = value;
this.OnPropertyChanged("Thickness");
}
}
}
public string Color {
get {
return this.colorField;
}
set {
if ((this.colorField != null)) {
if ((colorField.Equals(value) != true)) {
this.colorField = value;
this.OnPropertyChanged("Color");
}
}
else {
this.colorField = value;
this.OnPropertyChanged("Color");
}
}
}
public LengthUnitType Unit {
get {
return this.unitField;
}
set {
if ((unitField.Equals(value) != true)) {
this.unitField = value;
this.OnPropertyChanged("Unit");
}
}
}
public SizeContextType SizeContext {
get {
return this.sizeContextField;
}
set {
if ((sizeContextField.Equals(value) != true)) {
this.sizeContextField = value;
this.OnPropertyChanged("SizeContext");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(StrokeType));
}
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 StrokeType 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 StrokeType object
///
/// string workflow markup to deserialize
/// Output StrokeType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out StrokeType obj, out System.Exception exception) {
exception = null;
obj = default(StrokeType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out StrokeType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static StrokeType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((StrokeType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current StrokeType 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 StrokeType object
///
/// string xml file to load and deserialize
/// Output StrokeType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out StrokeType obj, out System.Exception exception) {
exception = null;
obj = default(StrokeType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out StrokeType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static StrokeType 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 StrokeType object
///
public virtual StrokeType Clone() {
return ((StrokeType)(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 GridColorType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private object itemField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ItemChoiceType itemElementNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("Band", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("Bands", typeof(GridColorBandsType))]
[System.Xml.Serialization.XmlElementAttribute("ExplicitColor", typeof(string))]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public object Item {
get {
return this.itemField;
}
set {
if ((this.itemField != null)) {
if ((itemField.Equals(value) != true)) {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
else {
this.itemField = value;
this.OnPropertyChanged("Item");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public ItemChoiceType ItemElementName {
get {
return this.itemElementNameField;
}
set {
if ((itemElementNameField.Equals(value) != true)) {
this.itemElementNameField = value;
this.OnPropertyChanged("ItemElementName");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridColorType));
}
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 GridColorType 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 GridColorType object
///
/// string workflow markup to deserialize
/// Output GridColorType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridColorType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridColorType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridColorType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridColorType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridColorType 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 GridColorType object
///
/// string xml file to load and deserialize
/// Output GridColorType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridColorType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridColorType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridColorType 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 GridColorType object
///
public virtual GridColorType Clone() {
return ((GridColorType)(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 GridColorBandsType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private ChannelBandType redBandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ChannelBandType greenBandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ChannelBandType blueBandField;
private static System.Xml.Serialization.XmlSerializer serializer;
public ChannelBandType RedBand {
get {
return this.redBandField;
}
set {
if ((this.redBandField != null)) {
if ((redBandField.Equals(value) != true)) {
this.redBandField = value;
this.OnPropertyChanged("RedBand");
}
}
else {
this.redBandField = value;
this.OnPropertyChanged("RedBand");
}
}
}
public ChannelBandType GreenBand {
get {
return this.greenBandField;
}
set {
if ((this.greenBandField != null)) {
if ((greenBandField.Equals(value) != true)) {
this.greenBandField = value;
this.OnPropertyChanged("GreenBand");
}
}
else {
this.greenBandField = value;
this.OnPropertyChanged("GreenBand");
}
}
}
public ChannelBandType BlueBand {
get {
return this.blueBandField;
}
set {
if ((this.blueBandField != null)) {
if ((blueBandField.Equals(value) != true)) {
this.blueBandField = value;
this.OnPropertyChanged("BlueBand");
}
}
else {
this.blueBandField = value;
this.OnPropertyChanged("BlueBand");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(GridColorBandsType));
}
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 GridColorBandsType 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 GridColorBandsType object
///
/// string workflow markup to deserialize
/// Output GridColorBandsType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out GridColorBandsType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorBandsType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out GridColorBandsType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static GridColorBandsType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((GridColorBandsType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current GridColorBandsType 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 GridColorBandsType object
///
/// string xml file to load and deserialize
/// Output GridColorBandsType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out GridColorBandsType obj, out System.Exception exception) {
exception = null;
obj = default(GridColorBandsType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out GridColorBandsType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static GridColorBandsType 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 GridColorBandsType object
///
public virtual GridColorBandsType Clone() {
return ((GridColorBandsType)(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 ChannelBandType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string bandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double lowBandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool lowBandFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private double highBandField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool highBandFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private byte lowChannelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private byte highChannelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public ChannelBandType() {
this.lowChannelField = ((byte)(0));
this.highChannelField = ((byte)(255));
}
public string Band {
get {
return this.bandField;
}
set {
if ((this.bandField != null)) {
if ((bandField.Equals(value) != true)) {
this.bandField = value;
this.OnPropertyChanged("Band");
}
}
else {
this.bandField = value;
this.OnPropertyChanged("Band");
}
}
}
public double LowBand {
get {
return this.lowBandField;
}
set {
if ((lowBandField.Equals(value) != true)) {
this.lowBandField = value;
this.OnPropertyChanged("LowBand");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool LowBandSpecified {
get {
return this.lowBandFieldSpecified;
}
set {
if ((lowBandFieldSpecified.Equals(value) != true)) {
this.lowBandFieldSpecified = value;
this.OnPropertyChanged("LowBandSpecified");
}
}
}
public double HighBand {
get {
return this.highBandField;
}
set {
if ((highBandField.Equals(value) != true)) {
this.highBandField = value;
this.OnPropertyChanged("HighBand");
}
}
}
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool HighBandSpecified {
get {
return this.highBandFieldSpecified;
}
set {
if ((highBandFieldSpecified.Equals(value) != true)) {
this.highBandFieldSpecified = value;
this.OnPropertyChanged("HighBandSpecified");
}
}
}
[System.ComponentModel.DefaultValueAttribute(typeof(byte), "0")]
public byte LowChannel {
get {
return this.lowChannelField;
}
set {
if ((this.lowChannelField != null)) {
if ((lowChannelField.Equals(value) != true)) {
this.lowChannelField = value;
this.OnPropertyChanged("LowChannel");
}
}
else {
this.lowChannelField = value;
this.OnPropertyChanged("LowChannel");
}
}
}
[System.ComponentModel.DefaultValueAttribute(typeof(byte), "255")]
public byte HighChannel {
get {
return this.highChannelField;
}
set {
if ((this.highChannelField != null)) {
if ((highChannelField.Equals(value) != true)) {
this.highChannelField = value;
this.OnPropertyChanged("HighChannel");
}
}
else {
this.highChannelField = value;
this.OnPropertyChanged("HighChannel");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(ChannelBandType));
}
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 ChannelBandType 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 ChannelBandType object
///
/// string workflow markup to deserialize
/// Output ChannelBandType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out ChannelBandType obj, out System.Exception exception) {
exception = null;
obj = default(ChannelBandType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out ChannelBandType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static ChannelBandType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((ChannelBandType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current ChannelBandType 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 ChannelBandType object
///
/// string xml file to load and deserialize
/// Output ChannelBandType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out ChannelBandType obj, out System.Exception exception) {
exception = null;
obj = default(ChannelBandType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out ChannelBandType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static ChannelBandType 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 ChannelBandType object
///
public virtual ChannelBandType Clone() {
return ((ChannelBandType)(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 VectorLayerDefinitionType : BaseLayerDefinitionType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string featureNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private FeatureNameType featureNameTypeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string filterField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList propertyMappingField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string geometryField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string urlField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string toolTipField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList vectorScaleRangeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
private static System.Xml.Serialization.XmlSerializer serializer;
public string FeatureName {
get {
return this.featureNameField;
}
set {
if ((this.featureNameField != null)) {
if ((featureNameField.Equals(value) != true)) {
this.featureNameField = value;
this.OnPropertyChanged("FeatureName");
}
}
else {
this.featureNameField = value;
this.OnPropertyChanged("FeatureName");
}
}
}
public FeatureNameType FeatureNameType {
get {
return this.featureNameTypeField;
}
set {
if ((featureNameTypeField.Equals(value) != true)) {
this.featureNameTypeField = value;
this.OnPropertyChanged("FeatureNameType");
}
}
}
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("PropertyMapping")]
public BindingList PropertyMapping {
get {
return this.propertyMappingField;
}
set {
if ((this.propertyMappingField != null)) {
if ((propertyMappingField.Equals(value) != true)) {
this.propertyMappingField = value;
this.OnPropertyChanged("PropertyMapping");
}
}
else {
this.propertyMappingField = value;
this.OnPropertyChanged("PropertyMapping");
}
}
}
public string Geometry {
get {
return this.geometryField;
}
set {
if ((this.geometryField != null)) {
if ((geometryField.Equals(value) != true)) {
this.geometryField = value;
this.OnPropertyChanged("Geometry");
}
}
else {
this.geometryField = value;
this.OnPropertyChanged("Geometry");
}
}
}
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");
}
}
}
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");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("VectorScaleRange")]
public BindingList VectorScaleRange {
get {
return this.vectorScaleRangeField;
}
set {
if ((this.vectorScaleRangeField != null)) {
if ((vectorScaleRangeField.Equals(value) != true)) {
this.vectorScaleRangeField = value;
this.OnPropertyChanged("VectorScaleRange");
}
}
else {
this.vectorScaleRangeField = value;
this.OnPropertyChanged("VectorScaleRange");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(VectorLayerDefinitionType));
}
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 VectorLayerDefinitionType 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 VectorLayerDefinitionType object
///
/// string workflow markup to deserialize
/// Output VectorLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out VectorLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(VectorLayerDefinitionType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out VectorLayerDefinitionType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static VectorLayerDefinitionType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((VectorLayerDefinitionType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current VectorLayerDefinitionType 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 VectorLayerDefinitionType object
///
/// string xml file to load and deserialize
/// Output VectorLayerDefinitionType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out VectorLayerDefinitionType obj, out System.Exception exception) {
exception = null;
obj = default(VectorLayerDefinitionType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out VectorLayerDefinitionType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static VectorLayerDefinitionType 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 VectorLayerDefinitionType object
///
public virtual VectorLayerDefinitionType Clone() {
return ((VectorLayerDefinitionType)(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 NameStringPairType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string nameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string valueField;
[EditorBrowsable(EditorBrowsableState.Never)]
private ExtendedDataType extendedData1Field;
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 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");
}
}
}
public ExtendedDataType ExtendedData1 {
get {
return this.extendedData1Field;
}
set {
if ((this.extendedData1Field != null)) {
if ((extendedData1Field.Equals(value) != true)) {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
else {
this.extendedData1Field = value;
this.OnPropertyChanged("ExtendedData1");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(NameStringPairType));
}
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 NameStringPairType 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 NameStringPairType object
///
/// string workflow markup to deserialize
/// Output NameStringPairType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out NameStringPairType obj, out System.Exception exception) {
exception = null;
obj = default(NameStringPairType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out NameStringPairType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static NameStringPairType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((NameStringPairType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current NameStringPairType 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 NameStringPairType object
///
/// string xml file to load and deserialize
/// Output NameStringPairType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out NameStringPairType obj, out System.Exception exception) {
exception = null;
obj = default(NameStringPairType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out NameStringPairType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static NameStringPairType 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 NameStringPairType object
///
public virtual NameStringPairType Clone() {
return ((NameStringPairType)(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 VectorScaleRangeType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private double minScaleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double maxScaleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool maxScaleFieldSpecified;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList