예제 #1
0
        // genereerd categorie buttons voor drankjes
        private void Btn_dranken_Click(object sender, EventArgs e)
        {
            // clear de panel en flow layout panel van buttons
            pnl_optiesbestelling.Controls.Clear();
            flowLP_MenuItems.Controls.Clear();

            // button van van de totaal bestelling button ontzichbaar maken
            Btn_VerwijderItemUitDB.Enabled = false;
            Btn_VerwijderItemUitDB.Visible = false;

            ButtonSelectie btn_nonalcoholisch = new ButtonSelectie(MenuKaart.Drank, Categorie.Nonalcoholisch);

            pnl_optiesbestelling.Controls.Add(btn_nonalcoholisch);
            btn_nonalcoholisch.Text     = "Non-Alcoholisch";
            btn_nonalcoholisch.Location = new Point(220, 0);
            btn_nonalcoholisch.Click   += new EventHandler(GenereerMenuItemButtons);

            ButtonSelectie btn_alcoholisch = new ButtonSelectie(MenuKaart.Alcohol, Categorie.Alcoholisch);

            pnl_optiesbestelling.Controls.Add(btn_alcoholisch);
            btn_alcoholisch.Text     = "Alcoholisch";
            btn_alcoholisch.Location = new Point(345, 0);
            btn_alcoholisch.Click   += new EventHandler(GenereerMenuItemButtons);

            UpdateListView();
        }
예제 #2
0
        // genereerd categorie buttons voor lunch
        private void Btn_lunch_Click(object sender, EventArgs e)
        {
            // clear de panel en flow layout panel van buttons
            pnl_optiesbestelling.Controls.Clear();
            flowLP_MenuItems.Controls.Clear();

            // button van van de totaal bestelling button ontzichbaar maken
            Btn_VerwijderItemUitDB.Enabled = false;
            Btn_VerwijderItemUitDB.Visible = false;

            ButtonSelectie btn_LunchVoor = new ButtonSelectie(MenuKaart.Lunch, Categorie.Voorgerecht);

            pnl_optiesbestelling.Controls.Add(btn_LunchVoor);
            btn_LunchVoor.Text     = "Voorgerecht";
            btn_LunchVoor.Location = new Point(10, 0);
            btn_LunchVoor.Click   += new EventHandler(GenereerMenuItemButtons);

            ButtonSelectie btn_LunchHoofd = new ButtonSelectie(MenuKaart.Lunch, Categorie.HoofdGerecht);

            pnl_optiesbestelling.Controls.Add(btn_LunchHoofd);
            btn_LunchHoofd.Text     = "Hoofdgerecht";
            btn_LunchHoofd.Location = new Point(135, 0);
            btn_LunchHoofd.Click   += new EventHandler(GenereerMenuItemButtons);

            ButtonSelectie btn_LunchNa = new ButtonSelectie(MenuKaart.Lunch, Categorie.Nagerecht);

            pnl_optiesbestelling.Controls.Add(btn_LunchNa);
            btn_LunchNa.Text     = "Nagerecht";
            btn_LunchNa.Location = new Point(260, 0);
            btn_LunchNa.Click   += new EventHandler(GenereerMenuItemButtons);

            UpdateListView();
        }