예제 #1
0
        public async Task StartEngine(int engineStartTime = 2000)
        {
            Engine = new CarEngine {
                NumCCs = 3800, NumCylinders = 6
            };

            IsEngineStarting = true;
            FeedBack         = "Starting engine...";
            Task  task = Engine.InitializeEngine(engineStartTime);
            await task;

            IsEngineStarting = false;
            IsEngineStarted  = true;
            FeedBack         = "Bruuuuum!";
        }
예제 #2
0
 public CarVm()
 {
     Engine = new CarEngine {
         NumCCs = 3800, NumCylinders = 6
     };
 }