Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            FoodFORM open = new FoodFORM();

            open.Show();
        }
Exemplo n.º 2
0
        private void foodManagerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            FoodFORM foodform = new FoodFORM();

            foodform.Show();
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            FoodFORM food = new FoodFORM();

            this.Hide();
            food.Show();
        }
Exemplo n.º 4
0
        private void Ok_btn_Click(object sender, EventArgs e)
        {
            if (checkBox2.Checked)
            {
                IndiaFOODPrice = 3.8;
                TotalCost      = FoodFORM.NUmberOfBerson * IndiaFOODPrice;
                Food_name      = "Baryani";
            }
            else if (checkBox3.Checked)
            {
                IndiaFOODPrice = 2.8;
                TotalCost      = FoodFORM.NUmberOfBerson * IndiaFOODPrice;
                Food_name      = "Carry";
            }
            else if (checkBox1.Checked)
            {
                IndiaFOODPrice = 3.5;
                TotalCost      = FoodFORM.NUmberOfBerson * IndiaFOODPrice;
                Food_name      = "Barbqi";
            }
            this.Hide();
            FoodFORM formF = new FoodFORM();

            formF.Show();
        }
Exemplo n.º 5
0
        private void Exit_Click(object sender, EventArgs e)
        {
            this.Hide();
            FoodFORM food = new FoodFORM();

            food.Show();
        }
Exemplo n.º 6
0
        private void button_OK_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked)
            {
                Drinkingprice             = 0.1;
                CustomerChoice_label.Text = "Water";
            }
            else if (radioButton2.Checked)
            {
                Drinkingprice             = 1.2;
                CustomerChoice_label.Text = "Orange juice ";
            }
            else if (radioButton3.Checked)
            {
                Drinkingprice             = 1.2;
                CustomerChoice_label.Text = "Mango juice ";
            }
            else if (radioButton4.Checked)
            {
                Drinkingprice             = 1.2;
                CustomerChoice_label.Text = "Watermelon juice ";
            }
            else if (radioButton5.Checked)
            {
                Drinkingprice             = 1.2;
                CustomerChoice_label.Text = "Banana juice ";
            }
            else if (radioButton6.Checked)
            {
                Drinkingprice             = 1.2;
                CustomerChoice_label.Text = "Strawberry juice ";
            }
            else if (checkBox1.Checked)
            {
                Drinkingprice             = 0.3;
                CustomerChoice_label.Text = "Cocacola";
            }
            else if (checkBox2.Checked)
            {
                Drinkingprice             = 0.3;
                CustomerChoice_label.Text = "Fanta";
            }
            else if (checkBox3.Checked)
            {
                Drinkingprice             = 0.3;
                CustomerChoice_label.Text = "Meranda";
            }

            Drinkingprice          = FoodFORM.NUmberOfBerson * Drinkingprice;
            drink_price_label.Text = Drinkingprice.ToString();
            this.Hide();
            FoodFORM fv = new FoodFORM();

            fv.Show();
        }
Exemplo n.º 7
0
        private void ADDCustomer_btn_Click(object sender, EventArgs e)
        {
            con.Open();
            SqlCommand command = con.CreateCommand();

            //command.ExecuteNonQuery();
            command.CommandType = CommandType.Text;
            command.CommandText = "insert*into Room_Manage values (' " + TextBox_CPR.Text + " ', ' " + comboBox_RoomType.Text + " ',' " + comboBox_RoomNumber.Text + " ', ' " + dateTime_IN.Value.ToString() + " ', ' " + dateTime_OUT.Value.ToString() + " ' )";
            MessageBox.Show("Room manager ", "Room sucssufully inserted to database ", MessageBoxButtons.OK, MessageBoxIcon.Information);

            con.Close();
            display_Information();

            this.Hide();
            FoodFORM food = new FoodFORM();

            food.Show();
        }
Exemplo n.º 8
0
        private void Ok_btn_Click(object sender, EventArgs e)
        {
            if (checkBox2.Checked)
            {
                foodname = "Kabsa"; price = 3.8;
            }
            else if (checkBox1.Checked)
            {
                foodname = "mandi"; price = 3.1;
            }
            else if (checkBox3.Checked)
            {
                foodname = " saleeg"; price = 2.5;
            }
            TScost = FoodFORM.NUmberOfBerson * price;
            this.Hide();
            FoodFORM f = new FoodFORM();

            f.Show();
        }
Exemplo n.º 9
0
        private void OK_btn_Click(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
            {
                price    = 4.2;
                foodName = "Legumes ";
            }
            else if (checkBox2.Checked)
            {
                price    = 5.6;
                foodName = "Tradtional ";
            }
            else if (checkBox3.Checked)
            {
                price    = 3.9;
                foodName = "Muhammer";
            }
            TBcost = FoodFORM.NUmberOfBerson * price;

            this.Hide();
            FoodFORM formF = new FoodFORM();

            formF.Show();
        }