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

            form.ShowDialog();
            refreshForm();
        }
예제 #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();
            }
        }
예제 #3
0
 /// <summary>
 /// Redirect to accounts tab
 /// </summary>
 private void tsmiCreateAccountsFirst_Click(object sender, EventArgs e)
 {
     AccountListForm form = new AccountListForm();
     form.ShowDialog();
     refreshForm();
 }
예제 #4
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();
            }
        }