public override Control CreatePanelWidget()
        {
            var settings           = SettingsLoader.LoadDefaultSettings(reportError: true);
            var repositoryProvider = SourceRepositoryProviderFactory.CreateSourceRepositoryProvider(settings);

            viewModel = new RegisteredPackageSourcesViewModel(repositoryProvider);
            viewModel.Load();

            packageSourcesWidget = new PackageSourcesWidget(viewModel);
            return(packageSourcesWidget);
        }
Example #2
0
 public ScriptExecutor(JsonRpc rpc)
 {
     this.rpc = rpc;
     Settings = new Lazy <ISettings> (() => SettingsLoader.LoadDefaultSettings());
     Reset();
 }