/// <summary> /// Invoked when the reset button is pressed in the UI /// </summary> private async void OnMenuResetPresetButtonPressed() { if (!CurrentPresetIsValid) { return; } currentPreset.Reset(); RemoveDecorators(currentVehicle); // Force one single refresh to update rendering at correct position after reset // This is required because otherwise the vehicle won't update immediately RefreshVehicleUsingPreset(currentVehicle, currentPreset); await Delay(200); PresetChanged?.Invoke(this, EventArgs.Empty); }