Example #1
0
 public void Add()
 {
     using (frmChiTietKhachHang frm = new frmChiTietKhachHang())
     {
         frm.fStatus      = Utility.FormStatus.Add;
         frm.ReLoadParent = this.Load_Data_Form;
         frm.ShowDialog();
     }
 }
Example #2
0
 public void Updated()
 {
     if (grvKhachHang.RowCount > 0 && grvKhachHang.FocusedRowHandle >= 0)
     {
         using (frmChiTietKhachHang frm = new frmChiTietKhachHang())
         {
             frm.fStatus = Utility.FormStatus.Edit;
             CDM_Khach_Hang v_objKhachHang = (CDM_Khach_Hang)grvKhachHang.GetRow(grvKhachHang.FocusedRowHandle);
             frm._objKhachHang = v_objKhachHang;
             frm.ReLoadParent  = this.Load_Data_Form;
             frm.ShowDialog();
         }
     }
 }