22{
33 public class Model_ServerDetails
44 {
5- string _uid = string . Empty ;
6- string _serverName = string . Empty ;
7- string _server = string . Empty ;
8- string _domain = string . Empty ;
9- int _port = 0 ;
10- string _username = string . Empty ;
115 string _password = string . Empty ;
12- string _description = string . Empty ;
136
14- int _colorDepth = 0 ;
15- int _desktopWidth = 0 ;
16- int _desktopHeight = 0 ;
17- bool _fullScreen = false ;
7+ public string UID { get ; set ; } = string . Empty ;
188
19- int _groupID = 0 ;
9+ public string ServerName { get ; set ; } = string . Empty ;
2010
21- public Model_ServerDetails ( )
22- {
23- }
11+ public string Server { get ; set ; } = string . Empty ;
2412
25- public string UID
26- {
27- set
28- {
29- this . _uid = value ;
30- }
31- get
32- {
33- return this . _uid ;
34- }
35- }
13+ public string Domain { get ; set ; } = string . Empty ;
3614
37- public string ServerName
38- {
39- set
40- {
41- this . _serverName = value ;
42- }
43- get
44- {
45- return this . _serverName ;
46- }
47- }
15+ public int Port { get ; set ; } = 0 ;
4816
49- public string Server
50- {
51- set
52- {
53- this . _server = value ;
54- }
55- get
56- {
57- return this . _server ;
58- }
59- }
17+ public string Username { get ; set ; } = string . Empty ;
6018
61- public string Domain
62- {
63- set
64- {
65- this . _domain = value ;
66- }
67- get
68- {
69- return this . _domain ;
70- }
71- }
72-
73- public int Port
19+ public string Password
7420 {
75- set
76- {
77- this . _port = value ;
78- }
7921 get
8022 {
81- return this . _port ;
82- }
83- }
23+ //if (this._password != string.Empty)
24+ //{
25+ // this._password = RijndaelSettings.Decrypt(this._password);
26+ //}
8427
85- public string Username
86- {
87- set
88- {
89- this . _username = value ;
90- }
91- get
92- {
93- return this . _username ;
28+ return this . _password ;
9429 }
95- }
96-
97- public string Password
98- {
9930 set
10031 {
10132 string val = value ;
10233
103- if ( val != string . Empty )
104- {
105- // val = RijndaelSettings.Encrypt(val);
106- }
34+ // if (val != string.Empty)
35+ // {
36+ // val = RijndaelSettings.Encrypt(val);
37+ // }
10738
10839 this . _password = val ;
10940 }
110- get
111- {
112- if ( this . _password != string . Empty )
113- {
114- //this._password = RijndaelSettings.Decrypt(this._password);
115- }
116-
117- return this . _password ;
118- }
11941 }
12042
121- public string Description
122- {
123- set
124- {
125- this . _description = value ;
126- }
127- get
128- {
129- return this . _description ;
130- }
131- }
43+ public string Description { get ; set ; } = string . Empty ;
13244
133- public int ColorDepth
134- {
135- set
136- {
137- this . _colorDepth = value ;
138- }
139- get
140- {
141- return this . _colorDepth ;
142- }
143- }
45+ public int ColorDepth { get ; set ; } = 0 ;
14446
145- public int DesktopWidth
146- {
147- set
148- {
149- this . _desktopWidth = value ;
150- }
151- get
152- {
153- return this . _desktopWidth ;
154- }
155- }
47+ public int DesktopWidth { get ; set ; } = 0 ;
15648
157- public int DesktopHeight
158- {
159- set
160- {
161- this . _desktopHeight = value ;
162- }
163- get
164- {
165- return this . _desktopHeight ;
166- }
167- }
49+ public int DesktopHeight { get ; set ; } = 0 ;
16850
169- public bool Fullscreen
170- {
171- set
172- {
173- this . _fullScreen = value ;
174- }
175- get
176- {
177- return this . _fullScreen ;
178- }
179- }
51+ public bool Fullscreen { get ; set ; } = false ;
18052
181- public int GroupID
182- {
183- set
184- {
185- this . _groupID = value ;
186- }
187- get
188- {
189- return this . _groupID ;
190- }
191- }
53+ public int GroupID { get ; set ; } = 0 ;
19254 }
19355}
0 commit comments