Example #1
0
        private void cbCategories_SelectedIndexChanged(object sender, EventArgs e)
        {
            List film1 = new PhimTamLyFactory();
            List film2 = new PhimTinhCamFactory();
            List film3 = new PhimVienTuongFactory();

            film1.SetPhim();
            film2.SetPhim();
            film3.SetPhim();
            if (cbCategories.SelectedIndex == 0)
            {
                hide(film1.PhimInfo());
            }
            if (cbCategories.SelectedIndex == 1)
            {
                hide(film3.PhimInfo());
            }
            if (cbCategories.SelectedIndex == 2)
            {
                hide(film2.PhimInfo());
            }
            if (cbCategories.SelectedIndex == 3)
            {
                hide("");
            }
        }
Example #2
0
        private void FPayment_Load(object sender, EventArgs e)
        {
            List film1 = new PhimTamLyFactory();
            List film2 = new PhimTinhCamFactory();
            List film3 = new PhimVienTuongFactory();

            film1.SetPhim();
            film2.SetPhim();
            film3.SetPhim();
            pictureBox1.Tag = film1.PhimInfo();
            pictureBox2.Tag = film2.PhimInfo();
            pictureBox3.Tag = film3.PhimInfo();
            pictureBox4.Tag = film3.PhimInfo();
            pictureBox5.Tag = film2.PhimInfo();
            pictureBox6.Tag = film1.PhimInfo();
        }