Exemple #1
0
 private void appform_Load(object sender, EventArgs e)
 {
     logForm          = new loginForm(this);
     logForm.TopLevel = false;
     loadPanel.Controls.Add(logForm);
     logForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     logForm.Dock            = DockStyle.Fill;
     logForm.Show();
 }
        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 #3
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();
        }