public HomeGUI(LoginGUI form, LoginCL login) : this() { this.form = form; this.login = login; loadData(); SellGUI sell = new SellGUI(login); FillPanel(sell); }
public void LogOut() { MainMenuGUI mmGUI = MainMenuGUI.Instance; LoginGUI lGUI = new LoginGUI(); mmGUI.Hide(); lGUI.Show(); mmGUI = null; CleanSession(); }
public TransfluentEditorWindow() { _mediator = new TransfluentEditorWindowMediator(); loginScreen = new LoginGUI(_mediator); textGui = new TextsGUI(_mediator); }
public void Bind(LoginGUI gui) { this.gui = gui; }
public MainWindow() { NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler(AddressChangedCallback); try { InitializeComponent(); lbStatus = lblStatus; LoginGUI Login = new LoginGUI(); Login.ShowDialog(); setTitle("Registrering"); if (Login.DialogResult == true) { current = Login.GetUser(); generateMenu(); setStatus("velkommen " + current.Usernane); } else if (Login.DialogResult == false) { this.Close(); } LoadContent(); CreateToolBox(); if (notHoliday && notFridayFri && DateTime.Now.DayOfWeek != DayOfWeek.Saturday && DateTime.Now.DayOfWeek != DayOfWeek.Sunday) { setTitle("Registrering"); MainContent.Children.Add(rg); ThreadStart starter = WorkThreadFunction; Thread thread = new Thread(starter) { IsBackground = true }; thread.Start(); } else { MainContent.Children.Add(st); setTitle("Statistik"); setStatus("Eleverne har fri så det er ikke muligt at registrere"); } List <string> manglerIGår = SQLDB.GetMissingRegs(Util.getDateTime()); if (manglerIGår.Count > 0) { StringBuilder sb = new StringBuilder(); foreach (string s in manglerIGår) { sb.AppendLine(s); } MessageBox.Show(sb.ToString()); } } catch (Exception ex) { FileHandler.Error(ex); } }
public HomeGUI(LoginGUI form) : this() { this.form = form; }
private void Awake() { Instance = this; }