Ejemplo n.º 1
0
 private void RegistrationButton_Click(object sender, EventArgs e)
 {
     if (registration)
     {
         LastNameTextBox.Hide();
         EmailTextBox.Hide();
         label1.Text     = "Вход";
         LoginLabel.Text = "Логин";
         LastNameLabel.Hide();
         EmailLabel.Hide();
         GenderLabel.Hide();
         GenderComboBox.Hide();
         BirthDateLabel.Hide();
         BirthDateTimePicker.Hide();
         LoginButton.Text        = "Войти";
         RegistrationButton.Text = "Регистрация";
         RobotCheckBox.Text      = "Я не робот";
         registration            = false;
     }
     else
     {
         LastNameTextBox.Show();
         EmailTextBox.Show();
         label1.Text     = "Регистрация";
         LoginLabel.Text = "Имя";
         LastNameLabel.Show();
         EmailLabel.Show();
         GenderLabel.Show();
         GenderComboBox.Show();
         BirthDateLabel.Show();
         BirthDateTimePicker.Show();
         LoginButton.Text        = "Создать";
         RegistrationButton.Text = "Авторизация";
         RobotCheckBox.Text      = "Принимаю условия\nсоглашения и т.д.";
         registration            = true;
     }
 }