Ejemplo n.º 1
0
        private void adminLogin_Click(object sender, EventArgs e)
        {
            this.Hide();
            adminLogin a = new adminLogin();

            a.ShowDialog();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         AdminLogin al = pl.AdminLogins.Single(AdminLogin => AdminLogin.Email == email);
         if (textBox1.Text == textBox2.Text && textBox1.Text != "" && textBox2.Text != "")
         {
             al.Password = textBox1.Text;
             pl.SubmitChanges();
             MessageBox.Show("Password Successfully Changed !");
             this.Hide();
             adminLogin a = new adminLogin();
             a.ShowDialog();
         }
         else
         {
             MessageBox.Show("Password Doesn't Match !!");
         }
     }
     catch (Exception ex)
     {
     }
 }