Beispiel #1
0
        private void CTSP_Load(object sender, EventArgs e)
        {
            ClassMenu MN = new ClassMenu();

            MN.hienthihinhanh(Hinh1, ma);
            MN.HienThiGiavaTenSP(ma, Ten1, Gia1);
            int SL = CTSP1.LaySoLuongSP(ma);

            if (SL == 0)
            {
                label2.Text     = " Vui lòng Liên hệ";
                button1.Visible = false;
            }
            else
            {
                label2.Visible  = false;
                button1.Visible = true;
            }
        }
Beispiel #2
0
        private void CTSP_FormClosing(object sender, FormClosingEventArgs e)
        {
            ClassMenu MN = new ClassMenu();

            MN.XoatrongGH();
        }