1 write to _viewModel
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (1)
191
_viewModel
= new NamingStyleOptionPageViewModel(preferences);
18 references to _viewModel
Microsoft.VisualStudio.LanguageServices.Implementation (18)
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (18)
64
Specifications = new ObservableCollection<SymbolSpecification>(
_viewModel
.Specifications),
65
NamingStyles = new ObservableCollection<MutableNamingStyle>(
_viewModel
.NamingStyles),
71
=>
_viewModel
.AddItem(CreateItemWithNoSelections());
75
var viewModel = new ManageSymbolSpecificationsDialogViewModel(
_viewModel
.Specifications,
_viewModel
.CodeStyleItems.ToList(), _languageName, _notificationService);
79
_viewModel
.UpdateSpecificationList(viewModel);
85
var viewModel = new ManageNamingStylesDialogViewModel(
_viewModel
.NamingStyles,
_viewModel
.CodeStyleItems.ToList(), _notificationService);
89
_viewModel
.UpdateStyleList(viewModel);
98
_viewModel
.MoveItem(oldSelectedIndex, oldSelectedIndex - 1);
109
_viewModel
.MoveItem(oldSelectedIndex, oldSelectedIndex + 1);
119
_viewModel
.RemoveItem(context);
146
foreach (var item in
_viewModel
.CodeStyleItems)
163
foreach (var item in
_viewModel
.Specifications)
168
foreach (var item in
_viewModel
.NamingStyles)
192
DataContext =
_viewModel
;
196
=>
_viewModel
.CodeStyleItems.Any(i => !i.IsComplete());
199
=>
_viewModel
.SelectedIndex = CodeStyleMembers.SelectedIndex;