void OnFuelEmpty(object sender, EngineEventArgs args) { Stop(); FuelFull.Invoke(null, new EngineEventArgs { Stopped = true }); }
public void OnFuelFull(object sender, EngineEventArgs args) { Console.WriteLine("Fuel is full!"); }
public void OnFuelEmpty(object sender, EngineEventArgs args) { Console.WriteLine("Fuel is empty!"); }
public void OnFuelFull(object sender, EngineEventArgs args) { }