private void Logout_Click(object sender, EventArgs e)
        {
            appForm.loadPanel.Controls.Remove(this);
            loginForm logForm;

            logForm          = new loginForm(appForm);
            logForm.TopLevel = false;
            appForm.loadPanel.Controls.Add(logForm);
            logForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            logForm.Dock            = DockStyle.Fill;
            logForm.Show();
        }
Exemple #2
0
        private void Logout_Click(object sender, EventArgs e)
        {
            Employee.getInstance().setPassword("");
            Employee.getInstance().setUserName("");

            appForm.loadPanel.Controls.Remove(this);
            loginForm f1 = new loginForm(appForm);

            f1          = new loginForm(appForm);
            f1.TopLevel = false;
            appForm.loadPanel.Controls.Add(f1);
            f1.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            f1.Dock            = DockStyle.Fill;
            f1.Show();
        }