private void GatherTimer_Tick_1(object sender, EventArgs e) { processLb.Items.Add(pizza.Gather()); setLabel(); GatherTimer.Stop(); CookTimer.Start(); }
private void CookTimer_Tick(object sender, EventArgs e) { processLb.Items.Add(pizza.Cook()); setLabel(); CookTimer.Stop(); PackTimer.Start(); }
public PrepareMV() { CounterCollection = new ObservableCollection <int>(); BoiledEgg = new Heater(); BoiledEgg.Ingredient = "Egg"; BoiledEgg.Amount = 2; BoiledTime = 0; Thread thread = new Thread(new ThreadStart(Makedelay)); thread.Start(); cookTime = new CookTimer(); cookTime.SimpleCounter(1); cookTime1 = new CookTimer(); cookTime1.SimpleCounter(2); // BoiledTime = BoiledEgg.Boil(5); // BoiledEgg.BoilAsync(10); //BoilAsync(5); //CountLopp(); //BoilAsync(1); //BoilAsync(2); //BoilAsync(3); }