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