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