2
2
{
3
3
public class Model_ServerDetails
4
4
{
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 ;
11
5
string _password = string . Empty ;
12
- string _description = string . Empty ;
13
6
14
- int _colorDepth = 0 ;
15
- int _desktopWidth = 0 ;
16
- int _desktopHeight = 0 ;
17
- bool _fullScreen = false ;
7
+ public string UID { get ; set ; } = string . Empty ;
18
8
19
- int _groupID = 0 ;
9
+ public string ServerName { get ; set ; } = string . Empty ;
20
10
21
- public Model_ServerDetails ( )
22
- {
23
- }
11
+ public string Server { get ; set ; } = string . Empty ;
24
12
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 ;
36
14
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 ;
48
16
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 ;
60
18
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
74
20
{
75
- set
76
- {
77
- this . _port = value ;
78
- }
79
21
get
80
22
{
81
- return this . _port ;
82
- }
83
- }
23
+ //if (this._password != string.Empty)
24
+ //{
25
+ // this._password = RijndaelSettings.Decrypt(this._password);
26
+ //}
84
27
85
- public string Username
86
- {
87
- set
88
- {
89
- this . _username = value ;
90
- }
91
- get
92
- {
93
- return this . _username ;
28
+ return this . _password ;
94
29
}
95
- }
96
-
97
- public string Password
98
- {
99
30
set
100
31
{
101
32
string val = value ;
102
33
103
- if ( val != string . Empty )
104
- {
105
- // val = RijndaelSettings.Encrypt(val);
106
- }
34
+ // if (val != string.Empty)
35
+ // {
36
+ // val = RijndaelSettings.Encrypt(val);
37
+ // }
107
38
108
39
this . _password = val ;
109
40
}
110
- get
111
- {
112
- if ( this . _password != string . Empty )
113
- {
114
- //this._password = RijndaelSettings.Decrypt(this._password);
115
- }
116
-
117
- return this . _password ;
118
- }
119
41
}
120
42
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 ;
132
44
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 ;
144
46
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 ;
156
48
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 ;
168
50
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 ;
180
52
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 ;
192
54
}
193
55
}
0 commit comments