User_Class
1| using System;
2| using System.Collections.Generic;
3| using System.Linq;
4| using System.Text;
5|
6| namespace MyDesktop
7| {
8| class User_Class
9| {
10| public static int iNextAppObj = 0;
11| public static int iMaxAppObjects = 10;
12|
13| private string sGroup;
14| private string sUserID;
15| private string sDrives;
16| private string sApps;
17| private string sSites;
18|
19| //Constructor method group
20| public User_Class(string sType, string sGroup_Value, string sUserID_Value,
21| string sDrive_Value, string sApps_Value, string sSites_Value)
22| {
23| if (sType.Equals("Group"))
24| {
25| sGroup = sGroup_Value;
26| sUserID = "";
27| }
28| else
29| {
30| sUserID = sUserID_Value;
31| sGroup = "";
32| }
33|
34| sPath = sPath_Value;
35| sDrives = sDrive_Value;
36| sApps = sApps_Value;
37| sSites = sSites_Value;
38|
39| iNextAppObj++;
40| }
41|
42| //Destructor Method
43| ~Apps_Class()
44| {
45| //Leave empty - no code.
46| }
47|
48| //CANNOT ACCESS PRIVATE METHODS EXCEPT THROUGH AN OBJECT OF ITS CLASS!!!
49|
50| public string Get_Group()
51| {
52| return sGroup;
53| }
54|
55| public string Get_UserID()
56| {
57| return sUserID;
58| }
59|
60| public string Get_Drives()
61| {
62| return sDrives;
63| }
64|
65| public string Get_Apps()
66| {
67| return sApps;
68| }
69|
70| public string Get_Sites()
71| {
72| return sSites;
73| }
74| }//end of class
75| }