/// <summary> /// The init plugin system. /// </summary> /// <param name="helper">The helper.</param> /// <param name="plugincontroller">The plugin controller.</param> /// <param name="manager">The manager.</param> public void InitPuginSystem(IVsEnvironmentHelper helper, PluginController plugincontroller, INotificationManager manager) { this.PluginManager = new PluginManagerModel( plugincontroller, this.configurationHelper, manager, helper); this.RoslynModel = new RoslynManagerModel(this.PluginManager.AnalysisPlugins, manager, this.configurationHelper, this.restService); this.RoslynViewModel = new RoslynManagerViewModel(this.RoslynModel); this.AvailableOptionsViews.Add(this.PluginManager); this.AvailableOptionsViews.Add(this.RoslynViewModel); this.AvailableOptionsModels.Add(this.PluginManager); this.AvailableOptionsModels.Add(this.RoslynModel); // sync checks to plugins this.RoslynModel.SyncDiagnosticsInPlugins(); }
/// <summary> /// The init plugin system. /// </summary> /// <param name="helper">The helper.</param> /// <param name="plugincontroller">The plugin controller.</param> /// <param name="manager">The manager.</param> public void InitPuginSystem(IVsEnvironmentHelper helper, PluginController plugincontroller, INotificationManager manager) { this.PluginManager = new PluginManagerModel( plugincontroller, this.configurationHelper, manager, helper); this.RoslynModel = new RoslynManagerModel(this.PluginManager.AnalysisPlugins, manager, this.configurationHelper, this.restService); this.RoslynViewModel = new RoslynManagerViewModel(this.RoslynModel); this.AvailableOptionsViews.Add(this.PluginManager); this.AvailableOptionsViews.Add(this.RoslynViewModel); this.AvailableOptionsModels.Add(this.PluginManager); this.AvailableOptionsModels.Add(this.RoslynModel); // sync checks to plugins this.RoslynModel.SyncDiagnosticsInPlugins(); }
/// <summary> /// Register model to the view /// </summary> /// <param name="controller"></param> /// <returns></returns> public RoslynManagerView(RoslynManagerViewModel controller) { this.InitializeComponent(); this.DataContext = controller; }