30 references to AllParameters
Microsoft.VisualStudio.IntegrationTest.Utilities (1)
InProcess\ChangeSignatureDialog_InProc.cs (1)
99members.SelectedItem = dialog.GetTestAccessor().ViewModel.AllParameters.Single(p => p.ShortAutomationText == parameterName);
Microsoft.VisualStudio.LanguageServices (20)
ChangeSignature\ChangeSignatureDialogViewModel.cs (20)
112foreach (var parameter in AllParameters) 142NotifyPropertyChanged(nameof(AllParameters)); 197return !AllParameters[index].IsRemoved; 210return AllParameters[index].IsRemoved; 218if (!AllParameters.Any()) 240if (AllParameters[_selectedIndex!.Value] is AddedParameterViewModel) 242var parameterToRemove = AllParameters[_selectedIndex!.Value]; 255AllParameters[_selectedIndex!.Value].IsRemoved = true; 264AllParameters[_selectedIndex!.Value].IsRemoved = false; 286NotifyPropertyChanged(nameof(AllParameters)); 370foreach (var parameter in AllParameters.Where(p => !p.IsRemoved)) 488NotifyPropertyChanged(nameof(AllParameters)); 495var canSubmit = AllParameters.Any(p => p.IsRemoved) || 496AllParameters.Any(p => p is AddedParameterViewModel) || 564return string.Format(ServicesVSResources.Move_0_above_1, AllParameters[SelectedIndex!.Value].ShortAutomationText, AllParameters[SelectedIndex!.Value - 1].ShortAutomationText); 577return string.Format(ServicesVSResources.Move_0_below_1, AllParameters[SelectedIndex!.Value].ShortAutomationText, AllParameters[SelectedIndex!.Value + 1].ShortAutomationText); 590return string.Format(ServicesVSResources.Remove_0, AllParameters[SelectedIndex!.Value].ShortAutomationText); 603return string.Format(ServicesVSResources.Restore_0, AllParameters[SelectedIndex!.Value].ShortAutomationText);
Microsoft.VisualStudio.LanguageServices.UnitTests (9)
ChangeSignature\ChangeSignatureViewModelTests.vb (9)
101monitor.AddExpectation(Function() viewModel.AllParameters) 138monitor.AddExpectation(Function() viewModel.AllParameters) 195monitor.AddExpectation(Function() viewModel.AllParameters) 310Assert.Equal("", state.ViewModel.AllParameters(0).Modifier) 311Assert.Equal("ref", state.ViewModel.AllParameters(1).Modifier) 312Assert.Equal("in", state.ViewModel.AllParameters(2).Modifier) 313Assert.Equal("out", state.ViewModel.AllParameters(3).Modifier) 385AssertPermuted(permutation, viewModel.AllParameters, viewModelTestState.OriginalParameterList) 420Dim parameter = viewModel.AllParameters(parameterIndex)