public RootAppConfig() { IsFirstRun = true; Audio = new AudioAppConfig(); Cloud = new CloudAppConfig(); Controls = new ControlsAppConfig(); Library = new LibraryAppConfig(); General = new GeneralAppConfig(); Windows = new WindowsAppConfig(); LibraryBrowser = new LibraryBrowserAppConfig(); ResumePlayback = new ResumePlaybackAppConfig(); }
public GeneralAppConfigChangedMessage(object sender, GeneralAppConfig config) : base(sender) { Config = config; }
public void RefreshGeneralPreferences(GeneralAppConfig config, string peakFolderSize) { _generalAppConfig = config; InvokeOnMainThread(() => { lblPeakFileFolderSize.StringValue = string.Format("Peak file folder size: {0}", peakFolderSize); trackSongPosition.Value = config.SongPositionUpdateFrequency; trackOutputMeter.Value = config.OutputMeterUpdateFrequency; trackMaximumPeakFolderSize.Value = config.MaximumPeakFolderSize; lblSongPositionValue.StringValue = config.SongPositionUpdateFrequency.ToString(); lblOutputMeterValue.StringValue = config.OutputMeterUpdateFrequency.ToString(); lblMaximumPeakFolderSizeValue.StringValue = config.MaximumPeakFolderSize.ToString(); matrixPeakFiles.SelectCell(config.UseCustomPeakFileFolder ? 1 : 0, 0); btnBrowseCustomDirectory.Enabled = matrixPeakFiles.SelectedRow == 1; }); }
public void RefreshGeneralPreferences(GeneralAppConfig config, string peakFolderSize) { _generalAppConfig = config; Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => { trackUpdateFrequency_SongPosition.Value = config.SongPositionUpdateFrequency; trackUpdateFrequency_OutputMeter.Value = config.OutputMeterUpdateFrequency; lblUpdateFrequency_OutputMeter.Content = config.OutputMeterUpdateFrequency.ToString(); lblUpdateFrequency_SongPosition.Content = config.SongPositionUpdateFrequency.ToString(); chkShowTooltips.IsChecked = config.ShowTooltips; chkShowAppInSystemTray.IsChecked = config.ShowAppInSystemTray; chkMinimizeAppInSystemTray.IsChecked = config.MinimizeAppInSystemTray; radioPeakFiles_UseCustomDirectory.IsChecked = config.UseCustomPeakFileFolder; radioPeakFiles_UseDefaultDirectory.IsChecked = !config.UseCustomPeakFileFolder; trackMaximumFolderSize.Value = config.MaximumPeakFolderSize; lblMaximumFolderSize.Content = config.MaximumPeakFolderSize.ToString(); txtPeakFiles_CustomDirectory.Text = config.CustomPeakFileFolder; lblPeakFolderSize.Content = string.Format("Peak file folder size: {0}", peakFolderSize); radioPeakFiles_UseDefaultDirectory.Content = string.Format("Use default directory ({0})", PathHelper.PeakFileDirectory); })); }
public void RefreshGeneralPreferences(GeneralAppConfig config, string peakFolderSize) { }
public void RefreshGeneralPreferences(GeneralAppConfig config, string peakFolderSize) { _config = config; _peakFolderSize = peakFolderSize; InvokeOnMainThread(() => { GenerateItems(); tableView.ReloadData(); }); }