Beispiel #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);
            }
        }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public ControlPanel(MainClientController ctrl, ChooseEdition sender)
 {
     InitializeComponent();
     ctr         = ctrl;
     this.sender = sender;
 }