private void buttonAddIncome_Click_1(object sender, EventArgs e) { IncomeWindow window = new IncomeWindow(); window.FormClosing += Action_FormClosing; ShowWindow(window); }
private void addIncomeToolStripMenuItem_Click(object sender, EventArgs e) { IncomeWindow window = new IncomeWindow(); window.FormClosing += Action_FormClosing; ShowWindow(window); }
private void mainIncomeToolStripMenuItem_Click(object sender, EventArgs e) { IncomeWindow incomes = new IncomeWindow(_incomeRepository); incomes.MdiParent = this; incomes.Show(); }
private void listViewIncome_MouseDoubleClick(object sender, MouseEventArgs e) { ListViewHitTestInfo info = listViewIncome.HitTest(e.X, e.Y); ListViewItem item = info.Item; IncomeWindow window = new IncomeWindow(item.Tag as PayDayModel); window.FormClosing += Action_FormClosing; ShowWindow(window); }
private void buttonEditIncome_Click(object sender, EventArgs e) { PayDayModel model = GetSelectedIncome(listViewConfigIncome); if (model == null) { return; } IncomeWindow window = new IncomeWindow(model); window.FormClosing += Action_FormClosing; ShowWindow(window); }