protected override void New() { base.New(); frmEditNotice myEditNotice = new frmEditNotice(); myEditNotice.New(); if (myEditNotice.ShowDialog() == DialogResult.OK) { BindData(); } myEditNotice.Dispose(); }
protected override void Edit() { if (gvBase.FocusedRowHandle < 0) { return; } base.Edit(); DataRow dr = gvBase.GetDataRow(gvBase.FocusedRowHandle); frmEditNotice myEditNotice = new frmEditNotice(); myEditNotice.Edit(dr["Aid"].ToString()); if (myEditNotice.ShowDialog() == DialogResult.OK) { BindData(); } myEditNotice.Dispose(); }