Beispiel #1
0
        private void Menu_Load(object sender, EventArgs e)
        {
            if (MaNV == 1)
            {
                hỗTrợKháchHàngToolStripMenuItem.Visible = true;
            }


            int a = MN.DemSoHinh();

            PB[0] = Hinh1;
            PB[1] = Hinh2;
            PB[2] = Hinh3;
            PB[3] = Hinh4;
            PB[4] = Hinh5;
            PB[5] = Hinh6;
            PB[6] = Hinh7;
            PB[7] = Hinh8;
            PB[8] = Hinh9;
            PB[9] = Hinh10;
            for (int i = 0; i < PB.Length; i++)
            {
                MN.hienthihinhanh(PB[i], i + 1);
            }
            TenSP = new Label[] { Ten1, Ten2, Ten3, Ten4, Ten5, Ten6, Ten7, Ten8, Ten9, Ten10 };
            GiaSP = new Label[] { Gia1, Gia2, Gia3, Gia4, Gia5, Gia6, Gia7, Gia8, Gia9, Gia10 };
            for (int i = 0; i < TenSP.Length; i++)
            {
                MN.HienThiGiavaTenSP(i + 1, TenSP[i], GiaSP[i]);
            }
        }
Beispiel #2
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;
            }
        }