Пример #1
0
        private void frmDepartmanSayfası_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmAdmin frmAdmin = new frmAdmin();

            frmAdmin.Show();
            this.Hide();
        }
Пример #2
0
        private void frmEmployee_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmAdmin admin = new frmAdmin();

            admin.Show();
            this.Hide();
        }
Пример #3
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     try
     {
         users = userBLL.GetUsersMail(txtMail.Text);
         users = userBLL.GetUserPass(txtpass.Text);
         userBLL.CheckBox(txtMail.Text, txtpass.Text);
         if (users != null)
         {
             if (users.Mail == txtMail.Text && users.Password == txtpass.Text)
             {
                 int      UserID    = users.UserID;
                 frmAdmin FormAdmin = new frmAdmin();
                 FormAdmin.Owner = this;
                 FormAdmin.Show();
                 this.Hide();
             }
         }
         else
         {
             MessageBox.Show("Giriş Bilgilerinizi Kontrol Ediniz");
             ClearTextBox();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         ClearTextBox();
     }
 }