示例#1
0
        private void btnAddRecord_Click(object sender, EventArgs e)
        {
            using (var page = new AddIncomePage())
            {
                page.ShowDialog();
            }

            IncomePage_Load(null, null);
        }
示例#2
0
        private void EditRecord()
        {
            using (var page = new AddIncomePage())
            {
                if (dgv.CurrentRow != null)
                {
                    page.IncomeId = (int)dgv.CurrentRow.Cells["clnId"].Value;
                    page.ShowDialog();
                }
            }

            IncomePage_Load(null, null);
        }