示例#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;
 }