예제 #1
0
        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;
            }
        }
예제 #2
0
        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();
        }