protected override void New() { frmBomEdit myBomEdit = new frmBomEdit(); myBomEdit.ShowDialog(); myBomEdit.Dispose(); BindData(); base.New(); }
protected override void CopyData() { if (gvBase.FocusedRowHandle < 0) { return; } base.CopyData(); DataRow dr = gvBase.GetDataRow(gvBase.FocusedRowHandle); frmBomEdit myBomEdit = new frmBomEdit(); myBomEdit.strItemID = dr["F_ItemID"].ToString(); myBomEdit.ShowDialog(); myBomEdit.Dispose(); }
protected override void Edit() { if (gvBase.FocusedRowHandle < 0) { return; } DataRow dr = gvBase.GetDataRow(gvBase.FocusedRowHandle); frmBomEdit myBomEdit = new frmBomEdit(); myBomEdit.strBillID = dr["F_BillID"].ToString(); myBomEdit.ShowDialog(); myBomEdit.Dispose(); BindData(); base.Edit(); }