private void TmrDefaultSizeNav_Tick(object sender, EventArgs e) { while (this.Width < 1082) { this.Width += Glob.ScreenChangeSpeed; } TmrDefaultSizeNav.Stop(); TmrDefaultSizeNav.Enabled = false; }
private void BtnHome_Click(object sender, EventArgs e) { if (TbCMain.SelectedTab != TbCMain.TabPages["TbpHome"]) { TbCMain.SelectedTab = TbCMain.TabPages["TbpHome"]; TmrDefaultSizeNav.Enabled = true; TmrDefaultSizeNav.Start(); TmrDefaultSizeNav.Interval = 1; } }
private void BtnWeetjes_Click(object sender, EventArgs e) { if (TbCMain.SelectedTab != TbCMain.TabPages["TbpWeetjes"]) { TbCMain.SelectedTab = TbCMain.TabPages["TbpWeetjes"]; TmrDefaultSizeNav.Enabled = true; TmrDefaultSizeNav.Start(); TmrDefaultSizeNav.Interval = 1; } Database DBinstance = new Database(); // used for the weetjes tab to get the tostring overrride method. LblLaatsteDataRegel.Text = Glob.Datas.Last().ToString(); LblHuidigeGebruiker.Text = Glob.CurrentLoggedInUser.ToString(); LblDatabaseConnectieString.Text = DBinstance.ToString(); LblAantalGebruikers.Text = Glob.ReturnAmountUsers().ToString(); LblAantalRegelsOpgeslagen.Text = Glob.ReturnAmountDataRows().ToString(); LblLongestUsernameWithMostRights.Text = Glob.ReturnLongestUsernameMostRights().ToString(); LblAantalWachtwoordenMatch.Text = Glob.ReturnAmountPasswordMatch().ToString(); }