예제 #1
0
 private void ToLogInPanel_button_Click(object sender, EventArgs e)
 {
     RegUsername_textbox.Clear();
     RegEmail_textbox.Clear();
     RegPassword_textbox.Clear();
     RegRPassword_textbox.Clear();
     LogIn_panel.Show();
     Register_panel.Hide();
 }
예제 #2
0
 private void Register_button_Click(object sender, EventArgs e)
 {
     if (loginController.RegisterUser(RegUsername_textbox.Text.Trim(),
                                      RegEmail_textbox.Text.Trim(),
                                      RegPassword_textbox.Text.Trim(),
                                      RegRPassword_textbox.Text.Trim(),
                                      Guid.NewGuid()) == true)
     {
         RegUsername_textbox.Clear();
         RegEmail_textbox.Clear();
         RegPassword_textbox.Clear();
         RegRPassword_textbox.Clear();
         LogIn_panel.Show();
         Register_panel.Hide();
     }
 }