Winify – Diff between revs 21 and 25

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 21 Rev 25
1 using System.ComponentModel; 1 using System.ComponentModel;
2 using System.Runtime.CompilerServices; 2 using System.Runtime.CompilerServices;
3 using System.Xml.Serialization; 3 using System.Xml.Serialization;
4 using Servers.Annotations; 4 using Servers.Properties;
5   5  
6 namespace Servers 6 namespace Servers
7 { 7 {
8 [XmlRoot(ElementName = "Server")] 8 [XmlRoot(ElementName = "Server")]
9 public class Server : INotifyPropertyChanged 9 public class Server : INotifyPropertyChanged
10 { 10 {
11 #region Public Enums, Properties and Fields 11 #region Public Enums, Properties and Fields
12   12  
13 [XmlElement(ElementName = "Name")] 13 [XmlElement(ElementName = "Name")]
14 public string Name 14 public string Name
15 { 15 {
16 get => _name; 16 get => _name;
17 set 17 set
18 { 18 {
19 if (value == _name) 19 if (value == _name)
20 { 20 {
21 return; 21 return;
22 } 22 }
23   23  
24 _name = value; 24 _name = value;
25 OnPropertyChanged(); 25 OnPropertyChanged();
26 } 26 }
27 } 27 }
28   28  
29 [XmlElement(ElementName = "Url")] 29 [XmlElement(ElementName = "Url")]
30 public string Url 30 public string Url
31 { 31 {
32 get => _url; 32 get => _url;
33 set 33 set
34 { 34 {
35 if (value == _url) 35 if (value == _url)
36 { 36 {
37 return; 37 return;
38 } 38 }
39   39  
40 _url = value; 40 _url = value;
41 OnPropertyChanged(); 41 OnPropertyChanged();
42 } 42 }
43 } 43 }
44   44  
45 [XmlElement(ElementName = "Username")] 45 [XmlElement(ElementName = "Username")]
46 public string Username 46 public string Username
47 { 47 {
48 get => _username; 48 get => _username;
49 set 49 set
50 { 50 {
51 if (value == _username) 51 if (value == _username)
52 { 52 {
53 return; 53 return;
54 } 54 }
55   55  
56 _username = value; 56 _username = value;
57 OnPropertyChanged(); 57 OnPropertyChanged();
58 } 58 }
59 } 59 }
60   60  
61 [XmlElement(ElementName = "Password")] 61 [XmlElement(ElementName = "Password")]
62 public string Password 62 public string Password
63 { 63 {
64 get => _password; 64 get => _password;
65 set 65 set
66 { 66 {
67 if (value == _password) 67 if (value == _password)
68 { 68 {
69 return; 69 return;
70 } 70 }
71   71  
72 _password = value; 72 _password = value;
73 OnPropertyChanged(); 73 OnPropertyChanged();
74 } 74 }
75 } 75 }
76   76  
77 #endregion 77 #endregion
78   78  
79 #region Private Delegates, Events, Enums, Properties, Indexers and Fields 79 #region Private Delegates, Events, Enums, Properties, Indexers and Fields
80   80  
81 private string _name = string.Empty; 81 private string _name = string.Empty;
82   82  
83 private string _password = string.Empty; 83 private string _password = string.Empty;
84   84  
85 private string _url = string.Empty; 85 private string _url = string.Empty;
86   86  
87 private string _username = string.Empty; 87 private string _username = string.Empty;
88   88  
89 #endregion 89 #endregion
90   90  
91 #region Constructors, Destructors and Finalizers 91 #region Constructors, Destructors and Finalizers
92   92  
93 [UsedImplicitly] 93 [UsedImplicitly]
94 public Server() 94 public Server()
95 { 95 {
96 } 96 }
97   97  
98 public Server(string name, string url, string username, string password) : this() 98 public Server(string name, string url, string username, string password) : this()
99 { 99 {
100 Name = name; 100 Name = name;
101 Url = url; 101 Url = url;
102 Username = username; 102 Username = username;
103 Password = password; 103 Password = password;
104 } 104 }
105   105  
106 #endregion 106 #endregion
107   107  
108 #region Interface 108 #region Interface
109   109  
110 public event PropertyChangedEventHandler PropertyChanged; 110 public event PropertyChangedEventHandler PropertyChanged;
111   111  
112 #endregion 112 #endregion
113   113  
114 #region Private Methods 114 #region Private Methods
115   115  
116 [NotifyPropertyChangedInvocator] 116 [NotifyPropertyChangedInvocator]
117 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) 117 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
118 { 118 {
119 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); 119 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
120 } 120 }
121   121  
122 #endregion 122 #endregion
123 } 123 }
124 } 124 }
125   125  
126
Generated by GNU Enscript 1.6.5.90.
126
Generated by GNU Enscript 1.6.5.90.
127   127  
128   128  
129   129