Пример #1
0
        public void change(ref boss b)
        {
            int    sedaDar = 0;
            string okPass  = "";

            for (int i = 0; i < b.signInNum % 10; i++)
            {
                okPass += "1";
            }
            foreach (var tmp in b.Username)
            {
                if (tmp.Equals('a') || tmp.Equals('e') || tmp.Equals('i') || tmp.Equals('o') || tmp.Equals('u') || tmp.Equals('A') || tmp.Equals('E') || tmp.Equals('I') || tmp.Equals('O') || tmp.Equals('U'))
                {
                    sedaDar++;
                }
            }
            for (int i = 0; i < sedaDar; i++)
            {
                okPass += "0";
            }
            if (pass_text.Text != okPass && repass_text.Text == (pass_text.Text))
            {
                b.Pass = pass_text.Text;
                check  = true;
            }
        }
Пример #2
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;
            }
        }
 public void change(ref boss b)
 {
     if (user_text.Text.Contains("admin") == true)
     {
         b.Username = user_text.Text;
         check      = true;
     }
 }
Пример #4
0
 public void change(ref boss c)
 {
     c.TypeOfRestaurant = type_text.Text;
 }
 public void change(ref boss c)
 {
     c.Region = int.Parse(region_text.Text);
 }
 public void change(ref boss c)
 {
     c.Family = family_text.Text;
 }
 public void change(ref boss c)
 {
     c.Name = name_text.Text;
 }