Ejemplo n.º 1
0
        private void buttonB_Click(object sender, EventArgs e)
        {
            LinkOrders lo       = new LinkOrders();
            string     quantity = comboBoxTea.Text.ToString();
            double     price    = 0;
            string     name     = "Coffee ";

            if (radioButtond.Checked == true)
            {
                name += " (Small)";
                price = 50;
            }
            if (radioButtone.Checked == true)
            {
                name += " (Medium)";
                price = 90;
            }
            if (radioButtonf.Checked == true)
            {
                name += " (Large)";
                price = 120;
            }
            lo.AddToBill(name, quantity, price);
            MessageBox.Show("Successfully Added: \n\n" + "Item Name:  " + name + "\nQuantity:  " + quantity + "\nPrice:  " + price + "/each");
        }
Ejemplo n.º 2
0
        private void arabian_Click(object sender, EventArgs e)
        {
            LinkOrders lo       = new LinkOrders();
            string     quantity = comboBox3.Text.ToString();
            double     price    = 0;
            string     name     = "Arabian Pizza ";

            if (radioButton7.Checked == true)
            {
                name += " (Small)";
                price = 250;
            }
            if (radioButton8.Checked == true)
            {
                name += " (Medium)";
                price = 450;
            }
            if (radioButton9.Checked == true)
            {
                name += " (Large)";
                price = 900;
            }
            lo.AddToBill(name, quantity, price);
            MessageBox.Show("Successfully Added: \n\n" + "Item Name:  " + name + "\nQuantity:  " + quantity + "\nPrice:  " + price + "/each");
        }
Ejemplo n.º 3
0
        private void buttonC_Click(object sender, EventArgs e)
        {
            LinkOrders lo       = new LinkOrders();
            string     quantity = comboBoxDrink.Text.ToString();
            double     price    = 0;
            string     name     = "Drink";

            if (radioButtong.Checked == true)
            {
                name += " (500 ml)";
                price = 50;
            }
            if (radioButtonh.Checked == true)
            {
                name += " (1 Litre)";
                price = 80;
            }
            if (radioButtoni.Checked == true)
            {
                name += " (1.5 )";
                price = 120;
            }
            lo.AddToBill(name, quantity, price);
            MessageBox.Show("Successfully Added: \n\n" + "Item Name:  " + name + "\nQuantity:  " + quantity + "\nPrice:  " + price + "/each");
        }
Ejemplo n.º 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            Menu       menu = new Menu();
            LinkOrders link = new LinkOrders();

            link.OrderProgessSet(true);
            menu.Show();
        }
Ejemplo n.º 5
0
        private void billing_Click(object sender, EventArgs e)
        {
            this.Hide();
            LinkOrders link = new LinkOrders();

            link.OrderProgessSet(true);
            Billing billing = new Billing();

            billing.Show();
        }
Ejemplo n.º 6
0
        private void button2_Click(object sender, EventArgs e)
        {
            LinkOrders lo       = new LinkOrders();
            string     quantity = comboBox1.Text.ToString();
            double     price    = 650;
            string     name     = "Midnight Deal ";

            lo.AddToBill(name, quantity, price);
            MessageBox.Show("Successfully Added: \n\n" + "Item Name:  " + name + "\nQuantity:  " + quantity + "\nPrice:  " + price + "/each");
        }
Ejemplo n.º 7
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            LinkOrders link = new LinkOrders();

            link.OrderProgessSet(false);
            link.DeleteAllOrders();
            Form1 form = new Form1();

            form.Show();
        }
Ejemplo n.º 8
0
        private void button4_Click(object sender, EventArgs e)


        {
            this.Hide();
            LinkOrders link = new LinkOrders();

            link.OrderProgessSet(true);
            Deals deals = new Deals();

            deals.Show();
        }
Ejemplo n.º 9
0
        private void Form1_Load(object sender, EventArgs e)
        {
            LinkOrders link = new LinkOrders();

            if (link.OrderProgess() == false)
            {
                label2.Text = "Order Now..!!!";
            }
            else
            {
                label2.Text = "Order In Progress....";
            }
        }
Ejemplo n.º 10
0
        private void button2_Click(object sender, EventArgs e)
        {
            LinkOrders lo       = new LinkOrders();
            string     quantity = SaladLarge.Text.ToString();
            double     price    = 0;
            string     name     = " Salad ";

            if (checkBox2.Checked == true)
            {
                name += " (Large)";
                price = 200;
            }

            lo.AddToBill(name, quantity, price);
            MessageBox.Show("Successfully Added: \n\n" + "Item Name:  " + name + "\nQuantity:  " + quantity + "\nPrice:  " + price + "/each");
        }
Ejemplo n.º 11
0
        private void Billing_Load(object sender, EventArgs e)
        {
            LinkOrders lo = new LinkOrders();

            lo.setHead();

            bool check     = true;
            int  serial_no = 0;

            while (check == true)
            {
                string x = lo.Item_name();
                string y = lo.Quantity();
                double z = lo.Price();
                serial_no++;
                this.Ferrari.Rows.Add(serial_no, x, y, z);
                check = lo.getCheck();
                if (check == true)
                {
                    lo.ordernext();
                }
            }
        }
Ejemplo n.º 12
0
        private void button1_Click(object sender, EventArgs e)
        {
            LinkOrders lo = new LinkOrders();

            lo.Print();
        }