コード例 #1
0
        private void returnToLoginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_LoginPage fLP = new frm_LoginPage(); //new instance of a login form is created

            fLP.Activate();                          //login form is activated
            fLP.Show();                              //login form is displayed
            this.Dispose();                          //current form is disposed
        }
コード例 #2
0
        private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //New instance for a login form
            frm_LoginPage tP = new frm_LoginPage();

            tP.Activate();
            tP.Show();
            this.Dispose();
        }
コード例 #3
0
        private void tmrSplashLoader_Tick(object sender, EventArgs e)
        {
            //Show the login Uform and hide this form
            p.Show();
            this.Hide();

            //Disable the header
            prgBarChecker.Enabled   = false;
            tmrPBar.Enabled         = false;
            tmrSplashLoader.Enabled = false;
        }
コード例 #4
0
        private void frmPrincipalPanel_FormClosing(object sender, FormClosingEventArgs e)
        {
            //Create a new login form
            frm_LoginPage pP = new frm_LoginPage();

            pP.Activate();
            pP.Show();

            //Collect disposed form info
            System.GC.Collect();

            //Close the form event
            this.Hide();
        }