private void AccountButton_Click(object sender, EventArgs e) { Hide(); Form accountForm = new AccountForm(this); accountForm.Show(); }
private void AddAccountButton_Click(object sender, EventArgs e) { AccountForm af = new AccountForm(AccountForm.Mode.Add, LoggedUser, UpdateAccountsDisplay, DisabledControls); af.Show(); FormUtilities.DisableControls(DisabledControls.ToArray()); }
private void BtnLookup_Click(object sender, EventArgs e) { if (AccountForm != null) { AccountForm.Show(); } else { AccountForm = new FrmAccounts(); AccountForm.Closed += AccountFormOnClosed; AccountForm.Show(); } }
private void mnuAccount_Click(object sender, EventArgs e) { if (accountForm == null || accountForm.IsDisposed) { accountForm = new AccountForm(); accountForm.Show(); accountForm.MdiParent = this; } else { accountForm.Activate(); } }
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()); }
private void AddBtn_Click(object sender, RoutedEventArgs e) { _accForm.CreateMode(); _accForm.Show(); }