예제 #1
0
파일: Foods.cs 프로젝트: Rabitttt/Foodex
        public void first_open()
        {
            food_list.Clear();
            food_list = DbProduct.db_fill_FoodList("Main Menu");
            fill_products();

            panel_drinks.BackColor    = Color.White;
            panel_mainfoods.BackColor = Color.DarkOrange;
            panel_desserts.BackColor  = Color.White;



            if (Seller.activeSeller != 0)
            {
                btn_product0_buy.Enabled = false;
                btn_product1_buy.Enabled = false;
                btn_product2_buy.Enabled = false;
            }
            else
            {
                btn_product0_buy.Enabled = true;
                btn_product1_buy.Enabled = true;
                btn_product2_buy.Enabled = true;
            }
        }
예제 #2
0
파일: Foods.cs 프로젝트: Rabitttt/Foodex
 private void pictureBox_desserts_Click(object sender, EventArgs e)
 {
     panel_drinks.BackColor    = Color.White;
     panel_mainfoods.BackColor = Color.White;
     panel_desserts.BackColor  = Color.DarkOrange;
     food_list         = DbProduct.db_fill_FoodList("Desserts");
     index_of_foodlist = 1;
     fill_products();
 }