private void ServiceCB_SelectionChanged(object sender, SelectionChangedEventArgs e) { var selectedServices = e.Source.ToString(); List <string> instruments = instrumentRepository.GetNameInstruments(selectedServices, ServiceCB.SelectedIndex + 1).ToList(); InstrumentCB.ItemsSource = instruments; }