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); }
public int NewRequest() { EggOrder egg = new EggOrder(); egg.GetQuality(); egg.GetQuantity(); egg.Creack(); return(quantity); }
public void CopyRequest() { NewRequest request = new NewRequest(); NewRequest copy = request; copy.ToString(); EggOrder egg = new EggOrder(); egg.GetQuality(); egg.GetQuantity(); egg.Creack(); }
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("Ваш(а) куриный гриль готов"); } }
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("Ваш(а) заказ повторяется"); } }
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("Ваш(а) куриный гриль принят на приготовление"); } }