Beispiel #1
0
        private void btnThem_click(object sender, EventArgs e)
        {
            frmThemSuaHangHoa frmThem = new frmThemSuaHangHoa();

            frmThem.ThemThanhCong += FillGridView;
            frmThem.ThemThanhCong += NhatKyThem;
            frmThem.ShowDialog();
        }
Beispiel #2
0
        private void BtnHangHoa_Click(object sender, EventArgs e)
        {
            frmThemSuaHangHoa frmhh = new frmThemSuaHangHoa();

            frmhh.ThemThanhCong += NapDuLieu;
            frmhh.ThemThanhCong += NhatKyThemHangHoa;
            frmhh.ShowDialog();
        }
Beispiel #3
0
        private void btnSua_click(object sender, EventArgs e)
        {
            if (CurRowIndex >= 0)
            {
                HangHoa hh = LayHangHoaDangChon();

                frmThemSuaHangHoa frmSua = new frmThemSuaHangHoa(hh);
                frmSua.CapNhatThanhCong += FillGridView;
                frmSua.CapNhatThanhCong += NhatKySua;
                frmSua.ShowDialog();
            }
        }