示例#1
0
文件: Form1.cs 项目: schneiderjan/dpr
 private void GatherTimer_Tick_1(object sender, EventArgs e)
 {
     processLb.Items.Add(pizza.Gather());
     setLabel();
     GatherTimer.Stop();
     CookTimer.Start();
 }
示例#2
0
文件: Form1.cs 项目: schneiderjan/dpr
 private void CookTimer_Tick(object sender, EventArgs e)
 {
     processLb.Items.Add(pizza.Cook());
     setLabel();
     CookTimer.Stop();
     PackTimer.Start();
 }
示例#3
0
        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);
        }