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 void RefreshLibraryPreferences(LibraryAppConfig config, string librarySize) { _libraryAppConfig = config; InvokeOnMainThread(() => { lblLibrarySize.StringValue = string.Format("Library size: {0}", librarySize); //checkEnableLibraryService.State = config.IsSyncServiceEnabled ? NSCellStateValue.On : NSCellStateValue.Off; chkEnableLibraryService.Value = config.IsSyncServiceEnabled; txtHttpPort.StringValue = config.SyncServicePort.ToString(); tableFolders.ReloadData(); }); }
public void RefreshLibraryPreferences(LibraryAppConfig config, string librarySize) { }
public void RefreshLibraryPreferences(LibraryAppConfig config, string librarySize) { _libraryAppConfig = config; Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => { lblLibrarySize.Content = string.Format("Library size: {0}", librarySize); listViewFolders.ItemsSource = config.Folders; listViewFolders.Items.Refresh(); })); }
public void RefreshLibraryPreferences(LibraryAppConfig config, string librarySize) { _config = config; _librarySize = librarySize; InvokeOnMainThread(() => { GenerateItems(); tableView.ReloadData(); }); }