private void Button_Click_6(object sender, RoutedEventArgs e) { var publisherLoader = new PageLoader(AppCur.LibraryData.Publishers.ToList <object>(), typeof(PublisherOverview)); publisherLoader.Position = PublisherGrid.SelectedIndex; var current = new PublisherOverview(PublisherGrid.SelectedValue); var window = new PaginalView(publisherLoader, current); window.ShowDialog(); }
private void Button_Click_7(object sender, RoutedEventArgs e) { var authorLoader = new PageLoader(AppCur.LibraryData.Authors.ToList <object>(), typeof(AuthorOverview)); authorLoader.Position = AuthorGrid.SelectedIndex; var current = new AuthorOverview(AuthorGrid.SelectedValue); var window = new PaginalView(authorLoader, current); window.ShowDialog(); }
//private void Button_Click_6(object sender, RoutedEventArgs e) //{ // BookView.Content = BookLoader.First; // BookLoader.Position = 0; //} //private void Button_Click_7(object sender, RoutedEventArgs e) //{ // BookView.Content = BookLoader.Prev; // BookLoader.Position--; //} //private void Button_Click_8(object sender, RoutedEventArgs e) //{ // BookView.Content = BookLoader.Next; // BookLoader.Position++; //} //private void Button_Click_9(object sender, RoutedEventArgs e) //{ // BookView.Content = BookLoader.Last; // BookLoader.Position = AppCur.LibraryData.Books.Count; //} private void Button_Click_10(object sender, RoutedEventArgs e) { var bookLoader = new PageLoader(AppCur.LibraryData.Books.ToList <object>(), typeof(BookOverview)); bookLoader.Position = BookGrid.SelectedIndex; var current = new BookOverview(BookGrid.SelectedValue); var window = new PaginalView(bookLoader, current); window.ShowDialog(); }