コード例 #1
0
        private void btnChiTiet_Click(object sender, EventArgs e)
        {
            GetValue();

            if (SoLuongYC > SoLuongCT && TrangThai != Convert.ToInt32(TrangThaiSanXuat.ChoXuat))
            {
                var frm = new frmChiTietTachThanhPhamSX(this);

                frm.ShowDialog();
            }
        }
コード例 #2
0
        private void dgvChiTiet_DoubleClick(object sender, EventArgs e)
        {
            if (grvChiTiet.FocusedRowHandle < 0)
            {
                return;
            }

            GetValue();

            if (SoLuongYC > SoLuongCT && TrangThai != Convert.ToInt32(TrangThaiSanXuat.ChoXuat))
            {
                var frm = new frmChiTietTachThanhPhamSX(this);

                frm.ShowDialog();
            }
        }