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

            BaseInfoDetailsPage_Load(null, null);
        }
コード例 #2
0
        private void EditRecord()
        {
            using (var page = new AddBaseInfoDetailsPage())
            {
                if (dgv.CurrentRow != null)
                {
                    page.BaseInfoDetailsId = (int)dgv.CurrentRow.Cells["clnId"].Value;
                    page.ShowDialog();
                }
            }

            BaseInfoDetailsPage_Load(null, null);
        }