Exemple #1
0
 private void registerButton_Click(object sender, RoutedEventArgs e)
 {
     if (login.Text != "" && login.Text != " ")
     {
         registrationUsers rgUsers = new registrationUsers("autoriz_op", "operator");
         MessageBox.Show(rgUsers.intoDateUser("operator_idoperator", "idoperator", login.Text));
         MessageBox.Show("Всё сработало!)");
     }
 }
Exemple #2
0
        private void registerButton_Click(object sender, RoutedEventArgs e)
        {
            while (login.Text.Length < 6)
            {
                registerButton.IsEnabled = false;
            }

            if (login.Text != "" && login.Text != " ")
            {
                registrationUsers rgUsers = new registrationUsers("autoriz_men", "meneger");
                rgUsers.intoDateUser("meneger_idmeneger", "idmeneger", login.Text);

                MessageBox.Show("Всё сработало!)");
            }
        }