3 instantiations of SymbolSpecificationViewModel
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\Style\NamingPreferences\SymbolSpecification\ManageSymbolSpecificationsDialogViewModel.cs (3)
34
Items = [.. specifications.Select(specification => new
SymbolSpecificationViewModel
(
51
var viewModel = new
SymbolSpecificationViewModel
(LanguageName, canBeDeleted: true, notificationService: _notificationService);
67
var viewModel = new
SymbolSpecificationViewModel
(LanguageName, symbolSpecification, symbolSpecificationViewModel.CanBeDeleted, _notificationService);
21 references to SymbolSpecificationViewModel
Microsoft.VisualStudio.LanguageServices.Implementation (21)
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
97
var symbolSpecifications = viewModel.Items.Cast<
SymbolSpecificationViewModel
>().Select(n => new SymbolSpecification(
Options\Style\NamingPreferences\SymbolSpecification\ManageSymbolSpecificationsDialogViewModel.cs (5)
51
var
viewModel = new SymbolSpecificationViewModel(LanguageName, canBeDeleted: true, notificationService: _notificationService);
64
var
symbolSpecificationViewModel = (
SymbolSpecificationViewModel
)item;
66
var symbolSpecification = ((
SymbolSpecificationViewModel
)item).GetSymbolSpecification();
67
var
viewModel = new SymbolSpecificationViewModel(LanguageName, symbolSpecification, symbolSpecificationViewModel.CanBeDeleted, _notificationService);
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationDialog.xaml.cs (15)
21
private readonly
SymbolSpecificationViewModel
_viewModel;
37
internal SymbolSpecificationDialog(
SymbolSpecificationViewModel
viewModel)
50
symbolKindsListView = CreateAutomationDelegatingListView(nameof(
SymbolSpecificationViewModel
.SymbolKindList));
53
accessibilitiesListView = CreateAutomationDelegatingListView(nameof(
SymbolSpecificationViewModel
.AccessibilityList));
56
modifiersListView = CreateAutomationDelegatingListView(nameof(
SymbolSpecificationViewModel
.ModifierList));
76
=> HandlePreviewKeyDown(e, symbolKindsListView.SelectedItems.OfType<
SymbolSpecificationViewModel
.SymbolKindViewModel>());
79
=> HandlePreviewKeyDown(e, accessibilitiesListView.SelectedItems.OfType<
SymbolSpecificationViewModel
.AccessibilityViewModel>());
82
=> HandlePreviewKeyDown(e, modifiersListView.SelectedItems.OfType<
SymbolSpecificationViewModel
.ModifierViewModel>());
84
private static void HandlePreviewKeyDown<T>(KeyEventArgs e, IEnumerable<T> selectedItems) where T :
SymbolSpecificationViewModel
.ISymbolSpecificationViewModelPart
100
foreach (var item in symbolKindsListView.Items.OfType<
SymbolSpecificationViewModel
.SymbolKindViewModel>())
108
foreach (var item in symbolKindsListView.Items.OfType<
SymbolSpecificationViewModel
.SymbolKindViewModel>())
116
foreach (var item in accessibilitiesListView.Items.OfType<
SymbolSpecificationViewModel
.AccessibilityViewModel>())
124
foreach (var item in accessibilitiesListView.Items.OfType<
SymbolSpecificationViewModel
.AccessibilityViewModel>())
132
foreach (var item in modifiersListView.Items.OfType<
SymbolSpecificationViewModel
.ModifierViewModel>())
140
foreach (var item in modifiersListView.Items.OfType<
SymbolSpecificationViewModel
.ModifierViewModel>())