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!"; }
public CarVm() { Engine = new CarEngine { NumCCs = 3800, NumCylinders = 6 }; }