private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool temp = false;

            for (int i = 0; i < 3; i++)
            {
                if (t[i].istrue(pass_box.Password, tb_box.Text.ToLower()))
                {
                    ma_win mw = new ma_win();
                    mw.Show();
                    temp = true;
                }

                //  MessageBox.Show(t[i].encripted);
            }
            if (!temp)
            {
                MessageBox.Show("שם משתמש או סיסמא אינם נכונים", "שגיאה", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            else
            {
                this.Close();
            }

            //ma_win mw = new ma_win();
            //mw.Show();
            //this.Close();
        }
예제 #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (user.Contains(tb_box.Text) && pass_box.Password == pass)
     {
         ma_win mw = new ma_win();
         mw.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("שם משתמש או סיסמא אינם נכונים", "שגיאה", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     //ma_win mw = new ma_win();
     //mw.Show();
     //this.Close();
 }