コード例 #1
0
        private void btnThem_click(object sender, EventArgs e)
        {
            frmThemSuaHangHoa frmThem = new frmThemSuaHangHoa();

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

            frmhh.ThemThanhCong += NapDuLieu;
            frmhh.ThemThanhCong += NhatKyThemHangHoa;
            frmhh.ShowDialog();
        }
コード例 #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();
            }
        }