예제 #1
0
        private void buttonEditBudget_Click(object sender, EventArgs e)
        {
            FormEditBudget edit = new FormEditBudget(comboBoxBudgets.SelectedIndex);

            this.Hide();
            edit.ShowDialog();
            this.Show();
        }
예제 #2
0
        private void buttonNewBudget_Click(object sender, EventArgs e)
        {
            FormEditBudget edit = new FormEditBudget();

            this.Hide();
            edit.ShowDialog();
            this.Show();
            //add the created budget to the dropbox
            comboBoxBudgets.Items.Add(Globals.Budgets[Globals.Budgets.Count - 1].Budget_name);
        }