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