示例#1
0
        private void buttonAddIncome_Click_1(object sender, EventArgs e)
        {
            IncomeWindow window = new IncomeWindow();

            window.FormClosing += Action_FormClosing;
            ShowWindow(window);
        }
示例#2
0
        private void addIncomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IncomeWindow window = new IncomeWindow();

            window.FormClosing += Action_FormClosing;
            ShowWindow(window);
        }
示例#3
0
        private void mainIncomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IncomeWindow incomes = new IncomeWindow(_incomeRepository);

            incomes.MdiParent = this;
            incomes.Show();
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }