1 write to CodeStyleItems
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
57
CodeStyleItems
= new ObservableCollection<NamingRuleViewModel>(viewModels);
15 references to CodeStyleItems
Microsoft.VisualStudio.LanguageServices.Implementation (15)
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (4)
73
var viewModel = new ManageSymbolSpecificationsDialogViewModel(_viewModel.Specifications, [.. _viewModel.
CodeStyleItems
], _languageName, _notificationService);
83
var viewModel = new ManageNamingStylesDialogViewModel(_viewModel.NamingStyles, [.. _viewModel.
CodeStyleItems
], _notificationService);
144
foreach (var item in _viewModel.
CodeStyleItems
)
192
=> _viewModel.
CodeStyleItems
.Any(i => !i.IsComplete());
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (11)
85
CodeStyleItems
.Add(namingRuleViewModel);
91
CodeStyleItems
.Remove(namingRuleViewModel);
113
foreach (var rule in
CodeStyleItems
)
137
CodeStyleItems
.Move(oldSelectedIndex, newSelectedIndex);
143
for (var i = 0; i <
CodeStyleItems
.Count; i++)
145
CodeStyleItems
[i].CanMoveUp = true;
146
CodeStyleItems
[i].CanMoveDown = true;
150
CodeStyleItems
[i].CanMoveUp = false;
153
if (i ==
CodeStyleItems
.Count - 1)
155
CodeStyleItems
[i].CanMoveDown = false;
180
foreach (var rule in
CodeStyleItems
)