Esempio n. 1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AccountSaveForm form = new AccountSaveForm();

            form.AccountSaved += new AccountSaveForm.AccountSavedEventHandler(refreshForm);
            form.ShowDialog();
        }
Esempio n. 2
0
 private void editButton_Click(object sender, EventArgs e)
 {
     Account account = new Account();
     account.Id = (long)accountListGrid.CurrentRow.Cells["id"].Value;
     account.Load(DatabaseFactory.Default);
     currentAccount = account;
     Form accountSaveForm = new AccountSaveForm(account);
     accountSaveForm.FormClosing += new FormClosingEventHandler(accountSaveForm_FormClosing);
     accountSaveForm.ShowDialog();
 }
Esempio n. 3
0
        private void editButton_Click(object sender, EventArgs e)
        {
            Account account = new Account();

            account.Id = (long)accountListGrid.CurrentRow.Cells["id"].Value;
            account.Load(DatabaseFactory.Default);
            currentAccount = account;
            Form accountSaveForm = new AccountSaveForm(account);

            accountSaveForm.FormClosing += new FormClosingEventHandler(accountSaveForm_FormClosing);
            accountSaveForm.ShowDialog();
        }
Esempio n. 4
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AccountSaveForm form = new AccountSaveForm();
     form.AccountSaved += new AccountSaveForm.AccountSavedEventHandler(refreshForm);
     form.ShowDialog();
 }