private void LoadConfiguration() { string path = ConfigurationFile.GetPath(); recordingOptions.Load(path); SetToggleRecordingKey(KeyInterop.KeyFromVirtualKey(recordingOptions.toggleRecordingHotkey)); SetToggleVisibilityKey(KeyInterop.KeyFromVirtualKey(recordingOptions.toggleOverlayHotkey)); timePeriod.Text = recordingOptions.recordTime.ToString(); recordingDelay.Text = recordingOptions.recordDelay.ToString(); allProcessesRecordingcheckBox.IsChecked = recordingOptions.recordAll; injectionOnStartUp.IsChecked = recordingOptions.injectOnStart; recordingDetail.Text = RecordingDetailMethods.GetFromString(recordingOptions.recordDetail).ToString(); userInterfaceState.OverlayPositionProperty = OverlayPositionMethods.GetFromInt(recordingOptions.overlayPosition); }
private void LoadConfiguration() { string path = ConfigurationFile.GetPath(); recordingOptions.Load(path); altCheckBox.IsChecked = recordingOptions.altKeyComb; SetToggleRecordingKey(KeyInterop.KeyFromVirtualKey(recordingOptions.toggleCaptureHotkey)); SetToggleVisibilityKey(KeyInterop.KeyFromVirtualKey(recordingOptions.toggleOverlayHotkey)); SetToggleGraphVisibilityKey(KeyInterop.KeyFromVirtualKey(recordingOptions.toggleGraphOverlayHotkey)); SetToggleBarVisibilityKey(KeyInterop.KeyFromVirtualKey(recordingOptions.toggleBarOverlayHotkey)); userInterfaceState.TimePeriod = recordingOptions.captureTime.ToString(); captureDelay.Text = recordingOptions.captureDelay.ToString(); allProcessesRecordingcheckBox.IsChecked = recordingOptions.captureAll; audioCueCheckBox.IsChecked = recordingOptions.audioCue; injectionOnStartUp.IsChecked = recordingOptions.injectOnStart; userInterfaceState.OverlayPositionProperty = OverlayPositionMethods.GetFromInt(recordingOptions.overlayPosition); userInterfaceState.CaptureOutputFolder = recordingOptions.captureOutputFolder; }