public void Add() { using (frmChiTietNhomHangHoa frm = new frmChiTietNhomHangHoa()) { frm.fStatus = Utility.FormStatus.Add; frm.ReLoadParent = this.Load_Data_Form; frm.ShowDialog(); } }
public void Updated() { if (grvNhomHangHoa.RowCount > 0 && grvNhomHangHoa.FocusedRowHandle >= 0) { using (frmChiTietNhomHangHoa frm = new frmChiTietNhomHangHoa()) { frm.fStatus = Utility.FormStatus.Edit; CDM_Nhom_Hang_Hoa v_objNhomHangHoa = (CDM_Nhom_Hang_Hoa)grvNhomHangHoa.GetRow(grvNhomHangHoa.FocusedRowHandle); frm._objNhomHangHoa = v_objNhomHangHoa; frm.ReLoadParent = this.Load_Data_Form; frm.ShowDialog(); } } }