Winify
/trunk/Servers/Servers.cs |
@@ -0,0 +1,63 @@ |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Runtime.CompilerServices; |
using System.Xml.Serialization; |
using Servers.Annotations; |
|
namespace Servers |
{ |
[XmlRoot(Namespace = "urn:winify-servers-schema", ElementName = "Servers")] |
public class Servers : INotifyPropertyChanged |
{ |
#region Public Enums, Properties and Fields |
|
[XmlElement(ElementName = "Server")] |
public List<Server> Server |
{ |
get => _server; |
set |
{ |
if (Equals(value, _server)) |
{ |
return; |
} |
|
_server = value; |
OnPropertyChanged(); |
} |
} |
|
#endregion |
|
#region Private Delegates, Events, Enums, Properties, Indexers and Fields |
|
private List<Server> _server = new List<Server>(); |
|
#endregion |
|
#region Constructors, Destructors and Finalizers |
|
[UsedImplicitly] |
public Servers() |
{ |
} |
|
#endregion |
|
#region Interface |
|
public event PropertyChangedEventHandler PropertyChanged; |
|
#endregion |
|
#region Private Methods |
|
[NotifyPropertyChangedInvocator] |
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
{ |
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
} |
|
#endregion |
} |
} |