Esempio n. 1
0
 public ReferenceResolver(ReferencesResolverExtensionPackage package)
 {
     this.package = package;
     this.info    = new ResolveInfo();
     this.worker  = new BackgroundWorker();
     this.worker.WorkerReportsProgress      = true;
     this.worker.WorkerSupportsCancellation = false;
 }
Esempio n. 2
0
        public void SaveUserSettings(UserSettingsModel userSettings)
        {
            SettingsManager       settingsManager   = new ShellSettingsManager(this);
            WritableSettingsStore userSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings);

            ReferencesResolverExtensionPackage.EnsureSettingsStoreCollectionExists(userSettingsStore);
            string settingsJson = ConvertUserSettingToJson(userSettings);

            userSettingsStore.SetString(PathCollectionString, UserSettingsProperty, settingsJson);
        }
Esempio n. 3
0
        public UserSettingsModel GetUserSettings()
        {
            SettingsManager       settingsManager   = new ShellSettingsManager(this);
            WritableSettingsStore userSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings);

            ReferencesResolverExtensionPackage.EnsureSettingsStoreCollectionExists(userSettingsStore);
            string            settingsJson = userSettingsStore.GetString(PathCollectionString, UserSettingsProperty, DefaultUserSettingsJson);
            UserSettingsModel userSettings = GetUserSettingsFromJson(settingsJson);

            return(userSettings);
        }
Esempio n. 4
0
 public void Initialize(ReferencesResolverExtensionPackage package, int?selectedCommandIndex = null)
 {
     this.windowContent.Initialize(package, selectedCommandIndex);
 }
Esempio n. 5
0
 public void Initialize(ReferencesResolverExtensionPackage package)
 {
     this.viewModel.Initialize(package);
 }