Exemple #1
0
        public HourUC()
        {
            InitializeComponent();
            UC1 = new ItemUC(Properties.Resources.gamehandle, "10000đ Giờ chơi", 10000, 0);
            UC2 = new ItemUC(Properties.Resources.gamehandle, "20000đ Giờ chơi", 20000, 0);
            UC3 = new ItemUC(Properties.Resources.gamehandle, "50000đ Giờ chơi", 50000, 0);
            UC4 = new ItemUC(Properties.Resources.gamehandle, "100000đ Giờ chơi", 100000, 0);

            hourList = new List <ItemUC>();
            hourList.Add(UC1);
            hourList.Add(UC2);
            hourList.Add(UC3);
            hourList.Add(UC4);
            int k = 0;

            for (int i = 0; i < (hourList.Count / 2); i++)
            {
                for (int j = 0; j < 2; j++)
                {
                    hourList[k].Location = new Point(75 + j * 350, i * 350);
                    k++;
                }
            }
            foreach (ItemUC uc in hourList)
            {
                this.Controls.Add(uc);
            }
        }
Exemple #2
0
        public DrinkUC()
        {
            InitializeComponent();

            UC1 = new ItemUC(Properties.Resources._7up, "7up", 12000, 0);
            UC2 = new ItemUC(Properties.Resources.aquafina, "Aquafina", 8000, 0);
            UC3 = new ItemUC(Properties.Resources.coca, "Cocacola", 12000, 0);
            UC4 = new ItemUC(Properties.Resources.monster, "Monster", 30000, 0);
            UC5 = new ItemUC(Properties.Resources.sting, "Sting", 10000, 0);
            UC6 = new ItemUC(Properties.Resources.trà_đá, "Trà đá", 10000, 0);

            drinkList = new List <ItemUC>();

            drinkList.Add(UC1);
            drinkList.Add(UC2);
            drinkList.Add(UC3);
            drinkList.Add(UC4);
            drinkList.Add(UC5);
            drinkList.Add(UC6);

            int k = 0;

            for (int i = 0; i < (drinkList.Count / 2); i++)
            {
                for (int j = 0; j < 2; j++)
                {
                    drinkList[k].Location = new Point(75 + j * 350, i * 350);
                    k++;
                }
            }
            foreach (ItemUC uc in drinkList)
            {
                this.Controls.Add(uc);
            }
        }
Exemple #3
0
        public FoodUC()
        {
            InitializeComponent();

            UC1 = new ItemUC(Properties.Resources.com_rang_thap_cam, "Cơm rang thập cẩm", 30000, 0);
            UC2 = new ItemUC(Properties.Resources.cach_lam_com_rang_dua_bo_1, "Cơm rang dưa bò", 35000, 0);
            UC3 = new ItemUC(Properties.Resources.bánh_mì_trứng, "Bánh mì trứng", 10000, 0);
            UC4 = new ItemUC(Properties.Resources.bánh_mì_xúc_xích, "Bánh mì xúc xích", 15000, 0);
            UC5 = new ItemUC(Properties.Resources.mì_tôm_trứng, "Mì tôm trứng", 10000, 0);
            UC6 = new ItemUC(Properties.Resources.thêm_trứng, "Thêm trứng", 5000, 0);

            foodList = new List <ItemUC>();

            foodList.Add(UC1);
            foodList.Add(UC2);
            foodList.Add(UC3);
            foodList.Add(UC4);
            foodList.Add(UC5);
            foodList.Add(UC6);

            int k = 0;

            for (int i = 0; i < (foodList.Count / 2); i++)
            {
                for (int j = 0; j < 2; j++)
                {
                    foodList[k].Location = new Point(75 + j * 350, i * 350);
                    k++;
                }
            }
            foreach (ItemUC uc in foodList)
            {
                this.Controls.Add(uc);
            }
        }