public RoslynManagerViewModel(RoslynManagerModel model) { this.Header = "Roslyn Manager"; this.model = model; this.BackGroundColor = Colors.White; this.ForeGroundColor = Colors.Black; this.AvailableDllDiagnostics = new ObservableCollection <VSSonarExtensionDiagnostic>(); this.AvailableChecksInDll = new ObservableCollection <RoslynDiagnosticInterpretation>(); foreach (var item in model.ExtensionDiagnostics) { AvailableDllDiagnostics.Add(item.Value); } SonarQubeViewModel.RegisterNewViewModelInPool(this); }
/// <summary> /// Initializes a new instance of the <see cref="RoslynManagerViewModel"/> class. /// </summary> /// <param name="model">The model.</param> public RoslynManagerViewModel(RoslynManagerModel model) { this.Header = "Roslyn Manager"; this.model = model; this.BackGroundColor = Colors.White; this.ForeGroundColor = Colors.Black; this.AvailableDllDiagnostics = new ObservableCollection <VSSonarExtensionDiagnostic>(); foreach (var item in model.ExtensionDiagnostics) { AvailableDllDiagnostics.Add(item.Value); } SonarQubeViewModel.RegisterNewViewModelInPool(this); this.InstallNewDllCommand = new RelayCommand(this.OnInstallNewDllCommand); this.RemoveDllCommand = new RelayCommand(this.OnRemoveDllCommand); }