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

            BaseInfoGroupPage_Load(null, null);
        }
Example #2
0
        private void EditRecord()
        {
            using (var page = new AddBaseInfoGroupPage())
            {
                if (dgv.CurrentRow != null)
                {
                    page.BaseInfoGroupId = (int)dgv.CurrentRow.Cells["clnId"].Value;
                    page.ShowDialog();
                }
            }

            BaseInfoGroupPage_Load(null, null);
        }