Example #1
0
        private void Author_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DummyComboBoxItem selectedAuthorItem = Author.SelectedItem as DummyComboBoxItem;
            AuthorViewModel   foundAuthor        = authorItems.FirstOrDefault(i => i.Id == selectedAuthorItem.Id);

            this.selectedAuthorItem = foundAuthor;
        }
Example #2
0
        private void Book_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DummyComboBoxItem selectedBookItem = Book.SelectedItem as DummyComboBoxItem;
            BookViewModel     foundBook        = bookItems.FirstOrDefault(i => i.Id == selectedBookItem.Id);

            this.selectedBookItem = foundBook;
        }
Example #3
0
        private void Publisher_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DummyComboBoxItem  selectedPublisherItem = Publisher.SelectedItem as DummyComboBoxItem;
            PublisherViewModel foundPublisher        = publisherItems.FirstOrDefault(i => i.Id == selectedPublisherItem.Id);

            this.selectedPublisherItem = foundPublisher;
        }
Example #4
0
        private void Section_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DummyComboBoxItem selectedSectionItem = Section.SelectedItem as DummyComboBoxItem;
            SectionViewModel  foundSection        = sectionItems.FirstOrDefault(i => i.Id == selectedSectionItem.Id);

            this.selectedSectionItem = foundSection;
        }
Example #5
0
        private void Client_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DummyComboBoxItem selectedClientItem = Client.SelectedItem as DummyComboBoxItem;
            ClientViewModel   foundClient        = clientItems.FirstOrDefault(i => i.Id == selectedClientItem.Id);

            this.selectedClientItem = foundClient;
        }
Example #6
0
        private void Library_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DummyComboBoxItem selectedItem = Library.SelectedItem as DummyComboBoxItem;

            LibraryViewModel foundLibrary = libraryItems.FirstOrDefault(i => i.Id == selectedItem.Id);

            this.selectedItem = foundLibrary;
        }