예제 #1
0
        private void buttonValidate_Click(object sender, EventArgs e)
        {
            string key = textBoxKey.Text;

            try {
                ctr.validation(email, key);
                ChooseEdition chooseEdition = new ChooseEdition(ctr);
                chooseEdition.Show();
                this.Hide();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #2
0
파일: Login.cs 프로젝트: alexsuciu06/ISS
 private void LoginButton_Click(object sender, EventArgs e)
 {
     try
     {
         ctr.Login(
             UsernameTextbox.Text,
             PasswordTextbox.Text,
             roleComboBox.Text
             );
         this.Hide();
         ChooseEdition chooseEditionWin = new ChooseEdition(ctr);
         chooseEditionWin.Show();
     } catch (DataException ex)
     {
         MessageBox.Show(ex.Message, "Can't log you in!", MessageBoxButtons.OK);
     }
 }
예제 #3
0
 public ControlPanel(MainClientController ctrl, ChooseEdition sender)
 {
     InitializeComponent();
     ctr         = ctrl;
     this.sender = sender;
 }