Esempio n. 1
0
        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();
     });
 }
Esempio n. 3
0
 public void RefreshLibraryPreferences(LibraryAppConfig config, string librarySize)
 {
 }
Esempio n. 4
0
 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();
			});
        }