public void ApplyPreset(Preset preset, AvailableDrivers driver) { Debug.WriteLine("ApplyPreset " + preset + ", " + driver.ToString()); // Save us from working if it is not needed now _paused = (driver == AvailableDrivers.Off); _queuedPreset = new Preset(preset); _needToApplyPreset = true; _relay.Connect(driver); // If this is the first time applying the preset, it is safe to execute this if (!_canStart || manualMode) { SafeApplyQueuedPreset(); } }