Winify – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | using System.Collections.Generic; |
2 | using System.ComponentModel; |
||
3 | using System.Runtime.CompilerServices; |
||
4 | using System.Xml.Serialization; |
||
5 | using Winify.Annotations; |
||
6 | |||
7 | namespace Winify.Connections |
||
8 | { |
||
9 | [XmlRoot(Namespace = "urn:winify-servers-schema", ElementName = "Servers")] |
||
10 | public class Servers : INotifyPropertyChanged |
||
11 | { |
||
12 | #region Public Enums, Properties and Fields |
||
13 | |||
14 | [XmlElement(ElementName = "Server")] |
||
15 | public List<Server> Server |
||
16 | { |
||
17 | get => _server; |
||
18 | set |
||
19 | { |
||
20 | if (Equals(value, _server)) |
||
21 | { |
||
22 | return; |
||
23 | } |
||
24 | |||
25 | _server = value; |
||
26 | OnPropertyChanged(); |
||
27 | } |
||
28 | } |
||
29 | |||
30 | #endregion |
||
31 | |||
32 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
||
33 | |||
34 | private List<Server> _server = new List<Server>(); |
||
35 | |||
36 | #endregion |
||
37 | |||
38 | #region Constructors, Destructors and Finalizers |
||
39 | |||
40 | [UsedImplicitly] |
||
41 | public Servers() |
||
42 | { |
||
43 | } |
||
44 | |||
45 | #endregion |
||
46 | |||
47 | #region Interface |
||
48 | |||
49 | public event PropertyChangedEventHandler PropertyChanged; |
||
50 | |||
51 | #endregion |
||
52 | |||
53 | #region Private Methods |
||
54 | |||
55 | [NotifyPropertyChangedInvocator] |
||
56 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
57 | { |
||
58 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
59 | } |
||
60 | |||
61 | #endregion |
||
62 | } |
||
63 | } |