Exemplo n.º 1
0
        public bool DeleteHoKhau(int id)
        {
            HOKHAU obj = new HOKHAU(id);

            context.setState(new InsertState());
            return(context.doAction(obj));
        }
Exemplo n.º 2
0
        public bool EditHoKhau(int mahokhau, string tentinh, string tenhuyen, string makhuvuc, string tenkhuvuc)
        {
            HOKHAU obj = new HOKHAU(mahokhau, tentinh, tenhuyen, makhuvuc, tenkhuvuc);

            context.setState(new EditState());
            return(context.doAction(obj));
        }
Exemplo n.º 3
0
        public bool InsertHoKhau(string tenhuyen, string tentinh, string tenkhuvuc)
        {
            HOKHAU obj = new HOKHAU(tenhuyen, tentinh, tenkhuvuc);

            context.setState(new InsertState());
            return(context.doAction(obj));
        }
Exemplo n.º 4
0
 public frmDKHoKhau()
 {
     InitializeComponent();
     imageComboBoxEdit1.Properties.Items.AddEnum(typeof(GioiTinh), true);
     imageComboBoxEdit1.SelectedIndex = 0;
     LoadDanToc();
     hkhau = new HOKHAU(unitOfWork1);
     BindingsTab();
 }