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