Example #1
0
        public int NewRequest()
        {
            EggOrder egg = new EggOrder();

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

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

            egg.GetQuality();
            egg.GetQuantity();
            egg.Creack();
        }
Example #3
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("Ваш(а) заказ повторяется");
            }
        }
Example #4
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("Ваш(а) куриный гриль принят на приготовление");
            }
        }