예제 #1
0
        private void Btn1_Click(object sender, RoutedEventArgs e)
        {
            bool   check = false;
            statUp t     = new statUp();

            for (int i = 0; i < statUp.bosses.Count; i++)
            {
                if (int.Parse(codeText.Text) == statUp.bosses[i].Code && passText.Text == statUp.bosses[i].Pass)
                {
                    Hold   = statUp.bosses[i];
                    signIn = true;
                    check  = true;
                    statUp.bosses[i].signInNum++;
                    //Hold.signInNum++;
                }
            }
            if (check)
            {
                MessageBox.Show("شما وارد حساب خود شدید");
            }
            else
            {
                MessageBox.Show("کلمه عبور یا ایمیل نادرست است");
            }
            if (Signup_window.customer != null)
            {
                showCustomers.ItemsSource = Signup_window.customer;
            }
        }
예제 #2
0
        private void Btn8_Click(object sender, RoutedEventArgs e)
        {
            statUp start = new statUp();

            MessageBox.Show("شما از حساب خود خارج شدید");
            start.Show();
            this.Close();
        }