private void AccountButton_Click(object sender, EventArgs e)
        {
            Hide();
            Form accountForm = new AccountForm(this);

            accountForm.Show();
        }
예제 #2
0
        private void AddAccountButton_Click(object sender, EventArgs e)
        {
            AccountForm af = new AccountForm(AccountForm.Mode.Add, LoggedUser, UpdateAccountsDisplay, DisabledControls);

            af.Show();
            FormUtilities.DisableControls(DisabledControls.ToArray());
        }
예제 #3
0
 private void BtnLookup_Click(object sender, EventArgs e)
 {
     if (AccountForm != null)
     {
         AccountForm.Show();
     }
     else
     {
         AccountForm         = new FrmAccounts();
         AccountForm.Closed += AccountFormOnClosed;
         AccountForm.Show();
     }
 }
예제 #4
0
 private void mnuAccount_Click(object sender, EventArgs e)
 {
     if (accountForm == null || accountForm.IsDisposed)
     {
         accountForm = new AccountForm();
         accountForm.Show();
         accountForm.MdiParent = this;
     }
     else
     {
         accountForm.Activate();
     }
 }
예제 #5
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            Button editButton = sender as Button;

            string[] accountData =
            {
                DBManager.GetSingleValueWhere("Accounts", "Title",            "Id", editButton.ImageIndex.ToString()),
                DBManager.GetSingleValueWhere("Accounts", "Login",            "Id", editButton.ImageIndex.ToString()),
                DBManager.GetSingleValueWhere("Accounts", "Associated_Email", "Id", editButton.ImageIndex.ToString()),
                DBManager.GetSingleValueWhere("Accounts", "Password",         "Id", editButton.ImageIndex.ToString()),
                editButton.ImageIndex.ToString() /* id */
            };

            AccountForm af = new AccountForm(AccountForm.Mode.Edit, LoggedUser, UpdateAccountsDisplay, DisabledControls, accountData);

            af.Show();
            FormUtilities.DisableControls(DisabledControls.ToArray());
        }
예제 #6
0
 private void AddBtn_Click(object sender, RoutedEventArgs e)
 {
     _accForm.CreateMode();
     _accForm.Show();
 }