private void btn_budgetAdd_Click(object sender, EventArgs e) { BudgetEntry form_BudgetEntry = new BudgetEntry(myBudget); form_BudgetEntry.FormClosed += new FormClosedEventHandler(BudgetEntry_FormClosed); form_BudgetEntry.isAddBudgetEntry = true; form_BudgetEntry.Show(); }
private void btn_BudgetModify_Click(object sender, EventArgs e) { if (lstvw_Budget.SelectedItems.Count > 0) { BudgetEntry form_BudgetEntry = new BudgetEntry(myBudget); form_BudgetEntry.FormClosed += new FormClosedEventHandler(BudgetEntry_FormClosed); form_BudgetEntry.isModifyBudgetEntry = true; form_BudgetEntry.setCategoryName(lstvw_Budget.SelectedItems[0].Text); form_BudgetEntry.setCategoryAmt(System.Convert.ToDecimal(lstvw_Budget.SelectedItems[0].SubItems[1].Text)); form_BudgetEntry.Show(); } }