Skip to content

Commit a8c2590

Browse files
author
Jayson Ragasa
committed
updated some badly ways of writing models
1 parent 6ed01fd commit a8c2590

File tree

14 files changed

+254
-269
lines changed

14 files changed

+254
-269
lines changed

Database/Database.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
<ItemGroup>
7575
<Compile Include="Database.cs" />
7676
<Compile Include="Groups.cs" />
77+
<Compile Include="Models\Model_ServerDetails.cs" />
7778
<Compile Include="Properties\AssemblyInfo.cs" />
7879
<Compile Include="RijndaelHelper.cs" />
7980
<Compile Include="Servers.cs" />
Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
namespace Database.Models
2+
{
3+
public class Model_ServerDetails
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+
string _password = string.Empty;
12+
string _description = string.Empty;
13+
14+
int _colorDepth = 0;
15+
int _desktopWidth = 0;
16+
int _desktopHeight = 0;
17+
bool _fullScreen = false;
18+
19+
int _groupID = 0;
20+
21+
public Model_ServerDetails()
22+
{
23+
}
24+
25+
public string UID
26+
{
27+
set
28+
{
29+
this._uid = value;
30+
}
31+
get
32+
{
33+
return this._uid;
34+
}
35+
}
36+
37+
public string ServerName
38+
{
39+
set
40+
{
41+
this._serverName = value;
42+
}
43+
get
44+
{
45+
return this._serverName;
46+
}
47+
}
48+
49+
public string Server
50+
{
51+
set
52+
{
53+
this._server = value;
54+
}
55+
get
56+
{
57+
return this._server;
58+
}
59+
}
60+
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
74+
{
75+
set
76+
{
77+
this._port = value;
78+
}
79+
get
80+
{
81+
return this._port;
82+
}
83+
}
84+
85+
public string Username
86+
{
87+
set
88+
{
89+
this._username = value;
90+
}
91+
get
92+
{
93+
return this._username;
94+
}
95+
}
96+
97+
public string Password
98+
{
99+
set
100+
{
101+
string val = value;
102+
103+
if (val != string.Empty)
104+
{
105+
//val = RijndaelSettings.Encrypt(val);
106+
}
107+
108+
this._password = val;
109+
}
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+
}
120+
121+
public string Description
122+
{
123+
set
124+
{
125+
this._description = value;
126+
}
127+
get
128+
{
129+
return this._description;
130+
}
131+
}
132+
133+
public int ColorDepth
134+
{
135+
set
136+
{
137+
this._colorDepth = value;
138+
}
139+
get
140+
{
141+
return this._colorDepth;
142+
}
143+
}
144+
145+
public int DesktopWidth
146+
{
147+
set
148+
{
149+
this._desktopWidth = value;
150+
}
151+
get
152+
{
153+
return this._desktopWidth;
154+
}
155+
}
156+
157+
public int DesktopHeight
158+
{
159+
set
160+
{
161+
this._desktopHeight = value;
162+
}
163+
get
164+
{
165+
return this._desktopHeight;
166+
}
167+
}
168+
169+
public bool Fullscreen
170+
{
171+
set
172+
{
173+
this._fullScreen = value;
174+
}
175+
get
176+
{
177+
return this._fullScreen;
178+
}
179+
}
180+
181+
public int GroupID
182+
{
183+
set
184+
{
185+
this._groupID = value;
186+
}
187+
get
188+
{
189+
return this._groupID;
190+
}
191+
}
192+
}
193+
}

0 commit comments

Comments
 (0)