#pragma warning disable 1591, 0114, 0108
// ------------------------------------------------------------------------------
//
// Generated by Xsd2Code. Version 3.4.0.32989
// OSGeo.MapGuide.ObjectModels.TileSetDefinitionBindingListCSharpTrueFalseFalseFalseTrueTrueFalseTrueFalseFalseTrueFalseNet20SerializeDeserializeSaveToFileLoadFromFileTrueFalseFalseFalseFalseFalseDefaultUTF8FalseFalse
//
// ------------------------------------------------------------------------------
namespace OSGeo.MapGuide.ObjectModels.TileSetDefinition.v3_0_0
{
using System.ComponentModel;
using System.IO;
///
/// Defines a tile cache
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class TileSetDefinition : BaseSerializable, System.ComponentModel.INotifyPropertyChanged
{
[EditorBrowsable(EditorBrowsableState.Never)]
private TileStoreParametersType tileStoreParametersField;
[EditorBrowsable(EditorBrowsableState.Never)]
private Box2DType extentsField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList baseMapLayerGroupField;
private static System.Xml.Serialization.XmlSerializer serializer;
///
/// Defines the parameters to access and describe the tile cache
///
public TileStoreParametersType TileStoreParameters {
get {
return this.tileStoreParametersField;
}
set {
if ((this.tileStoreParametersField != null)) {
if ((tileStoreParametersField.Equals(value) != true)) {
this.tileStoreParametersField = value;
this.OnPropertyChanged("TileStoreParameters");
}
}
else {
this.tileStoreParametersField = value;
this.OnPropertyChanged("TileStoreParameters");
}
}
}
///
/// A bounding box around the area of the tile cache
///
public Box2DType Extents {
get {
return this.extentsField;
}
set {
if ((this.extentsField != null)) {
if ((extentsField.Equals(value) != true)) {
this.extentsField = value;
this.OnPropertyChanged("Extents");
}
}
else {
this.extentsField = value;
this.OnPropertyChanged("Extents");
}
}
}
///
/// A group of layers that is used to compose a tiled layer in the HTML viewer
///
[System.Xml.Serialization.XmlElementAttribute("BaseMapLayerGroup")]
public BindingList BaseMapLayerGroup {
get {
return this.baseMapLayerGroupField;
}
set {
if ((this.baseMapLayerGroupField != null)) {
if ((baseMapLayerGroupField.Equals(value) != true)) {
this.baseMapLayerGroupField = value;
this.OnPropertyChanged("BaseMapLayerGroup");
}
}
else {
this.baseMapLayerGroupField = value;
this.OnPropertyChanged("BaseMapLayerGroup");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(TileSetDefinition));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current TileSetDefinition object into an XML document
///
/// string XML value
public virtual string Serialize()
{
return base.NormalizedSerialize(Serializer, this);
}
///
/// Deserializes workflow markup into an TileSetDefinition object
///
/// string workflow markup to deserialize
/// Output TileSetDefinition object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out TileSetDefinition obj, out System.Exception exception) {
exception = null;
obj = default(TileSetDefinition);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out TileSetDefinition obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static TileSetDefinition Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((TileSetDefinition)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current TileSetDefinition 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 TileSetDefinition object
///
/// string xml file to load and deserialize
/// Output TileSetDefinition object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out TileSetDefinition obj, out System.Exception exception) {
exception = null;
obj = default(TileSetDefinition);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out TileSetDefinition obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static TileSetDefinition 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 TileSetDefinition object
///
public virtual TileSetDefinition Clone() {
return ((TileSetDefinition)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class TileStoreParametersType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string tileProviderField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList parameterField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string TileProvider {
get {
return this.tileProviderField;
}
set {
if ((this.tileProviderField != null)) {
if ((tileProviderField.Equals(value) != true)) {
this.tileProviderField = value;
this.OnPropertyChanged("TileProvider");
}
}
else {
this.tileProviderField = value;
this.OnPropertyChanged("TileProvider");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("Parameter")]
public BindingList Parameter {
get {
return this.parameterField;
}
set {
if ((this.parameterField != null)) {
if ((parameterField.Equals(value) != true)) {
this.parameterField = value;
this.OnPropertyChanged("Parameter");
}
}
else {
this.parameterField = value;
this.OnPropertyChanged("Parameter");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(TileStoreParametersType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current TileStoreParametersType 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 TileStoreParametersType object
///
/// string workflow markup to deserialize
/// Output TileStoreParametersType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out TileStoreParametersType obj, out System.Exception exception) {
exception = null;
obj = default(TileStoreParametersType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out TileStoreParametersType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static TileStoreParametersType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((TileStoreParametersType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current TileStoreParametersType 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 TileStoreParametersType object
///
/// string xml file to load and deserialize
/// Output TileStoreParametersType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out TileStoreParametersType obj, out System.Exception exception) {
exception = null;
obj = default(TileStoreParametersType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out TileStoreParametersType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static TileStoreParametersType 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 TileStoreParametersType object
///
public virtual TileStoreParametersType Clone() {
return ((TileStoreParametersType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class NameValuePairType : 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(NameValuePairType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current NameValuePairType 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 NameValuePairType object
///
/// string workflow markup to deserialize
/// Output NameValuePairType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out NameValuePairType obj, out System.Exception exception) {
exception = null;
obj = default(NameValuePairType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out NameValuePairType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static NameValuePairType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((NameValuePairType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current NameValuePairType 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 NameValuePairType object
///
/// string xml file to load and deserialize
/// Output NameValuePairType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out NameValuePairType obj, out System.Exception exception) {
exception = null;
obj = default(NameValuePairType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out NameValuePairType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static NameValuePairType 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 NameValuePairType object
///
public virtual NameValuePairType Clone() {
return ((NameValuePairType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ExtendedDataType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList anyField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlAnyElementAttribute()]
public BindingList Any {
get {
return this.anyField;
}
set {
if ((this.anyField != null)) {
if ((anyField.Equals(value) != true)) {
this.anyField = value;
this.OnPropertyChanged("Any");
}
}
else {
this.anyField = value;
this.OnPropertyChanged("Any");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(ExtendedDataType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current ExtendedDataType 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 ExtendedDataType object
///
/// string workflow markup to deserialize
/// Output ExtendedDataType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out ExtendedDataType obj, out System.Exception exception) {
exception = null;
obj = default(ExtendedDataType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out ExtendedDataType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static ExtendedDataType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((ExtendedDataType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current ExtendedDataType 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 ExtendedDataType object
///
/// string xml file to load and deserialize
/// Output ExtendedDataType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out ExtendedDataType obj, out System.Exception exception) {
exception = null;
obj = default(ExtendedDataType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out ExtendedDataType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static ExtendedDataType 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 ExtendedDataType object
///
public virtual ExtendedDataType Clone() {
return ((ExtendedDataType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class BaseMapLayerType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string nameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string resourceIdField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool selectableField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool showInLegendField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string legendLabelField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool expandInLegendField;
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 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 bool Selectable {
get {
return this.selectableField;
}
set {
if ((selectableField.Equals(value) != true)) {
this.selectableField = value;
this.OnPropertyChanged("Selectable");
}
}
}
public bool ShowInLegend {
get {
return this.showInLegendField;
}
set {
if ((showInLegendField.Equals(value) != true)) {
this.showInLegendField = value;
this.OnPropertyChanged("ShowInLegend");
}
}
}
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 bool ExpandInLegend {
get {
return this.expandInLegendField;
}
set {
if ((expandInLegendField.Equals(value) != true)) {
this.expandInLegendField = value;
this.OnPropertyChanged("ExpandInLegend");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(BaseMapLayerType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current BaseMapLayerType 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 BaseMapLayerType object
///
/// string workflow markup to deserialize
/// Output BaseMapLayerType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out BaseMapLayerType obj, out System.Exception exception) {
exception = null;
obj = default(BaseMapLayerType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out BaseMapLayerType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static BaseMapLayerType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((BaseMapLayerType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current BaseMapLayerType 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 BaseMapLayerType object
///
/// string xml file to load and deserialize
/// Output BaseMapLayerType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out BaseMapLayerType obj, out System.Exception exception) {
exception = null;
obj = default(BaseMapLayerType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out BaseMapLayerType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static BaseMapLayerType 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 BaseMapLayerType object
///
public virtual BaseMapLayerType Clone() {
return ((BaseMapLayerType)(this.MemberwiseClone()));
}
#endregion
}
[System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseMapLayerGroupCommonType))]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class MapLayerGroupCommonType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string nameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool visibleField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool showInLegendField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool expandInLegendField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string legendLabelField;
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 bool Visible {
get {
return this.visibleField;
}
set {
if ((visibleField.Equals(value) != true)) {
this.visibleField = value;
this.OnPropertyChanged("Visible");
}
}
}
public bool ShowInLegend {
get {
return this.showInLegendField;
}
set {
if ((showInLegendField.Equals(value) != true)) {
this.showInLegendField = value;
this.OnPropertyChanged("ShowInLegend");
}
}
}
public bool ExpandInLegend {
get {
return this.expandInLegendField;
}
set {
if ((expandInLegendField.Equals(value) != true)) {
this.expandInLegendField = value;
this.OnPropertyChanged("ExpandInLegend");
}
}
}
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");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(MapLayerGroupCommonType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current MapLayerGroupCommonType 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 MapLayerGroupCommonType object
///
/// string workflow markup to deserialize
/// Output MapLayerGroupCommonType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out MapLayerGroupCommonType obj, out System.Exception exception) {
exception = null;
obj = default(MapLayerGroupCommonType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out MapLayerGroupCommonType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static MapLayerGroupCommonType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((MapLayerGroupCommonType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current MapLayerGroupCommonType 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 MapLayerGroupCommonType object
///
/// string xml file to load and deserialize
/// Output MapLayerGroupCommonType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out MapLayerGroupCommonType obj, out System.Exception exception) {
exception = null;
obj = default(MapLayerGroupCommonType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out MapLayerGroupCommonType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static MapLayerGroupCommonType 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 MapLayerGroupCommonType object
///
public virtual MapLayerGroupCommonType Clone() {
return ((MapLayerGroupCommonType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class BaseMapLayerGroupCommonType : MapLayerGroupCommonType, System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList baseMapLayerField;
private static System.Xml.Serialization.XmlSerializer serializer;
[System.Xml.Serialization.XmlElementAttribute("BaseMapLayer")]
public BindingList BaseMapLayer {
get {
return this.baseMapLayerField;
}
set {
if ((this.baseMapLayerField != null)) {
if ((baseMapLayerField.Equals(value) != true)) {
this.baseMapLayerField = value;
this.OnPropertyChanged("BaseMapLayer");
}
}
else {
this.baseMapLayerField = value;
this.OnPropertyChanged("BaseMapLayer");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(BaseMapLayerGroupCommonType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current BaseMapLayerGroupCommonType 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 BaseMapLayerGroupCommonType object
///
/// string workflow markup to deserialize
/// Output BaseMapLayerGroupCommonType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out BaseMapLayerGroupCommonType obj, out System.Exception exception) {
exception = null;
obj = default(BaseMapLayerGroupCommonType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out BaseMapLayerGroupCommonType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static BaseMapLayerGroupCommonType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((BaseMapLayerGroupCommonType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current BaseMapLayerGroupCommonType 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 BaseMapLayerGroupCommonType object
///
/// string xml file to load and deserialize
/// Output BaseMapLayerGroupCommonType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out BaseMapLayerGroupCommonType obj, out System.Exception exception) {
exception = null;
obj = default(BaseMapLayerGroupCommonType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out BaseMapLayerGroupCommonType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static BaseMapLayerGroupCommonType 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 BaseMapLayerGroupCommonType object
///
public virtual BaseMapLayerGroupCommonType Clone() {
return ((BaseMapLayerGroupCommonType)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.4.0.32990")]
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=true)]
public partial class Box2DType : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private double minXField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double maxXField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double minYField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double maxYField;
private static System.Xml.Serialization.XmlSerializer serializer;
public double MinX {
get {
return this.minXField;
}
set {
if ((minXField.Equals(value) != true)) {
this.minXField = value;
this.OnPropertyChanged("MinX");
}
}
}
public double MaxX {
get {
return this.maxXField;
}
set {
if ((maxXField.Equals(value) != true)) {
this.maxXField = value;
this.OnPropertyChanged("MaxX");
}
}
}
public double MinY {
get {
return this.minYField;
}
set {
if ((minYField.Equals(value) != true)) {
this.minYField = value;
this.OnPropertyChanged("MinY");
}
}
}
public double MaxY {
get {
return this.maxYField;
}
set {
if ((maxYField.Equals(value) != true)) {
this.maxYField = value;
this.OnPropertyChanged("MaxY");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(Box2DType));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
#region Serialize/Deserialize
///
/// Serializes current Box2DType 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 Box2DType object
///
/// string workflow markup to deserialize
/// Output Box2DType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out Box2DType obj, out System.Exception exception) {
exception = null;
obj = default(Box2DType);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out Box2DType obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static Box2DType Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((Box2DType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current Box2DType 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 Box2DType object
///
/// string xml file to load and deserialize
/// Output Box2DType object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out Box2DType obj, out System.Exception exception) {
exception = null;
obj = default(Box2DType);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out Box2DType obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static Box2DType 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 Box2DType object
///
public virtual Box2DType Clone() {
return ((Box2DType)(this.MemberwiseClone()));
}
#endregion
}
}