Exemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {//valide le dessert selectionne
            name = Convert.ToString(checkedListBox3.SelectedItem);

            SqlConnection connection = BDD.open();
            string        req        = "SELECT prix, reduction FROM DESSERTS WHERE dessert='" + name + "'";

            BDD.filllabel(req, connection, label6, label9);

            this.infoForm8(label6.Text, label9.Text, name, "Desserts"); //creation de l'evenement infoform8
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {//valide le burger selectionne
            //recupere le nom de l'element coche
            name = Convert.ToString(checkedListBox1.SelectedItem);

            SqlConnection connection = BDD.open();
            string        req        = "SELECT prix, reduction FROM BURGERS WHERE burger='" + name + "'";

            BDD.filllabel(req, connection, label1, label7);

            this.infoForm8(label1.Text, label7.Text, name, "Burgers"); //creation de l'evenement infoform8
        }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {//valider la selection de la salade
            name = Convert.ToString(checkedListBox2.SelectedItem);

            SqlConnection connection = BDD.open();
            string        req        = "SELECT prix, reduction FROM SALADES WHERE salade='" + name + "'";

            BDD.filllabel(req, connection, label5, label8);

            connection.Close();
            this.infoForm8(label5.Text, label8.Text, name, "Salades"); //creation de l'evenement infoform8
        }