private void InitializeForm() { //init controls userControl = new ctrlUser(uid, userlvl, string.Empty, string.Empty, area); fileControl = new ctrlFiles(uid, userlvl, string.Empty, string.Empty, area); classControl = new ctrlClass(uid, userlvl, area, string.Empty, string.Empty); homeControl = new ctrlHome(); SetUser(); SetArea(); LoadModules(); InactivityDetector(); //Poll DB StartPoll(); //Show Home ShowControl(homeControl); LoadHome(); StartSlide(); }
private void InitializeForm() { //userControl = new ctrlUser(this); //fileControl = new ctrlFiles(uid,userlvl); //classControl = new ctrlClass(); homeControl = new ctrlHome(); SetUser(); LoadSwitches(); LoadModules(userlvl); LoadHome(); InactivityDetector(); }