예제 #1
0
        private void accountsCreate_Button_Click(object sender, EventArgs e)
        {
            Main.AccountIndex = null;
            var account_Form = new Account_Form();

            account_Form.AccountFormClosed += new EventHandler(accountForm_Closed);
            account_Form.Show();
            this.Enabled = false;
        }
예제 #2
0
        private void accountsEdit_Button_Click(object sender, EventArgs e)
        {
            if (Main.AccountIndex == null)
            {
                MessageBox.Show("Must select item to edit", "Invalid Selection");
                return;
            }

            var account_Form = new Account_Form();

            account_Form.AccountFormClosed += new EventHandler(accountForm_Closed);
            account_Form.Show();
            this.Enabled = false;
        }