Beispiel #1
0
        public int PrepareFood()
        {
            CkickenOrder order = new CkickenOrder();

            order.GetQuantity();
            order.Cook();
            if (quantity > 1)
            {
                quantity.ToString("Ваш заказ приготовлень");
            }
            else if (quantity < 1)
            {
                quantity.ToString("Ошибки на заказ");
            }

            EggOrder egg = new EggOrder();

            egg.GetQuantity();
            egg.DiscrardShell();
            egg.Cook();
            if (quantity < 1)
            {
                quantity.ToString($"Ваш яйца не тухлый {egg.quality}");
            }
            return(quantity);
        }
Beispiel #2
0
        public int NewRequest()
        {
            EggOrder egg = new EggOrder();

            egg.GetQuality();
            egg.GetQuantity();
            egg.Creack();
            return(quantity);
        }
Beispiel #3
0
        public void CopyRequest()
        {
            NewRequest request = new NewRequest();
            NewRequest copy    = request;

            copy.ToString();
            EggOrder egg = new EggOrder();

            egg.GetQuality();
            egg.GetQuantity();
            egg.Creack();
        }
Beispiel #4
0
        private void Button3_Click(object sender, EventArgs e)
        {
            Employee employee = new Employee();
            EggOrder egg      = new EggOrder();

            if (radioButton1.Checked)
            {
                textBox2.Text = employee.quantity.ToString("Ваш(а) яйцо готов");
            }
            else
            {
                textBox2.Text = employee.quantity.ToString("Ваш яйца не тухлый");
            }

            if (Chicken.Checked)
            {
                textBox2.Text = egg.quality.ToString("Ваш(а) куриный гриль готов");
            }
        }
Beispiel #5
0
        private void Button2_Click(object sender, EventArgs e)
        {
            EggOrder     egg   = new EggOrder();
            CkickenOrder order = new CkickenOrder();

            order.Cook();
            Employee employee = new Employee();

            employee.NewRequest();
            egg.GetQuality();

            if (radioButton1.Checked)
            {
                MessageBox.Show("Ваш(а) заказ повторяется");

                label3.Text = egg.quality.ToString();
            }
            if (Chicken.Checked)
            {
                MessageBox.Show("Ваш(а) заказ повторяется");
            }
        }
Beispiel #6
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Employee employee = new Employee();

            employee.NewRequest();
            EggOrder egg = new EggOrder();

            egg.GetQuality();

            if (radioButton1.Checked)
            {
                MessageBox.Show("Ваш(а) яйцо принят на приготовление");

                label3.Text = egg.quality.ToString();
            }

            CkickenOrder order = new CkickenOrder();

            order.GetQuantity();
            if (Chicken.Checked)
            {
                MessageBox.Show("Ваш(а) куриный гриль принят на приготовление");
            }
        }