Beispiel #1
0
        private void tsmiAccountList_Click(object sender, EventArgs e)
        {
            AccountListForm form = new AccountListForm();

            form.ShowDialog();
            refreshForm();
        }
Beispiel #2
0
        /// <summary>
        /// Show account correction form
        /// </summary>
        private void tsmiAccountCorrection_Click(object sender, EventArgs e)
        {
            if (!keeper.Accounts.Any())
            {
                MessageBox.Show(Resources.Labels.NoAccountsText, Resources.Labels.NoAccountsTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
                AccountListForm accountsForm = new AccountListForm();
                accountsForm.ShowDialog();
                refreshForm();
                return;
            }

            AccountCorrectionForm form = new AccountCorrectionForm();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                refreshForm();
            }
        }
 /// <summary>
 /// Redirect to accounts tab
 /// </summary>
 private void tsmiCreateAccountsFirst_Click(object sender, EventArgs e)
 {
     AccountListForm form = new AccountListForm();
     form.ShowDialog();
     refreshForm();
 }
        /// <summary>
        /// Show account correction form
        /// </summary>
        private void tsmiAccountCorrection_Click(object sender, EventArgs e)
        {
            if (!keeper.Accounts.Any())
            {
                MessageBox.Show(Resources.Labels.NoAccountsText, Resources.Labels.NoAccountsTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
                AccountListForm accountsForm = new AccountListForm();
                accountsForm.ShowDialog();
                refreshForm();
                return;
            }

            AccountCorrectionForm form = new AccountCorrectionForm();
            if (form.ShowDialog(this) == DialogResult.OK)
            {
                refreshForm();
            }
        }