Exemple #1
0
        public static async Task ForOpacityDelayAsync(int ms, int i)
        {
            await Task.Delay(ms);

            LinesA[i].Opacity = 1;
            if (i == 49)
            {
                CirculationVM.StartCirc();
            }
        }
Exemple #2
0
 void ChangeState(Button button)
 {
     button.IsState = !button.IsState;
     WaterVM.Start();
     ChangeParam();
     CirculationVM.StartCirc();
     PumpAnimVM.StartPmpR(button.Left, button.Top);
     PumpAnimVM.StartPmpL(button.Left, button.Top);
     //Game.StartGame();
     //for(int i = 0; i < 5; i++)
     //{
     //    LineVM.Push();
     //}
 }