public FileshareForm(string rfidnumber, bool isadmin, LoginForm parentform) { ParentForm = parentform; ParentForm.Hide(); InitializeComponent(); isAdmin = true; LastRefresh = DateTime.Now; if (isAdmin) { User = new Admin(rfidnumber); grp_Admin.Visible = true; } else { User = new User(rfidnumber); } this.Show(); FORMDB = new Database(rfidnumber); initializeLists(); FillTableHeader(); lb_TableHeader.SelectedIndex = 0; //setFileTypes(); //setSearchTypes(); //getMyUploadsData(); //getBrowseData(); }
public User(string rfidnumber) { RFIDnumber = rfidnumber; isAdmin = false; ServerPath = @"C:\" + RFIDnumber + @"\"; DATA = new Database(RFIDnumber); }
public Admin(string rfidnumber) : base(rfidnumber) { RFIDnumber = rfidnumber; isAdmin = true; DATA = new Database(RFIDnumber); }
public FlagForm(string userRfidnumber, string filepath, string filetitle, string uploaderRfidnumber, string filetype, string filetags) { InitializeComponent(); cb_FlagReasons.SelectedIndex = 0; FlagDB = new Database(userRfidnumber); RFIDnumber = userRfidnumber; Path = filepath; Title = filetitle; Uploader = uploaderRfidnumber; Type = filetype; Tags = filetags; }