Пример #1
0
        private void btn_cancel_Click(object sender, RoutedEventArgs e)
        {
            Login l = new Login();
            l.Show();
            this.Close();

        }
Пример #2
0
 private void btn_ok_Click(object sender, RoutedEventArgs e)
 {
     int type;
     if (cb_whatAreU.Text == "מורה")
         type = 1 ;
     else
         type = 2 ;
     c.changePW(blk_EmailAddress.Text, type);
     Login l = new Login() ; 
     l.Show();
     this.Close();
 }
Пример #3
0
        private void btn_saveNewTeacher_Click(object sender, RoutedEventArgs e)
        {
            if (!(tb_firstPW.Text == tb_secondPW.Text))
            {
                System.Windows.MessageBox.Show("!הסיסמאות לא תואמות");
                return;
            }
            control.addTeacher(tb_firstName.Text, tb_lastName.Text, tb_mail.Text, tb_cellPhone.Text, tb_PayPalAccount.Text, tb_firstPW.Text);


            Login l = new Login();
            l.Show();
            this.Close();
        }