private void Update() { if (BookAuthorTabItem.IsSelected) { UIShared.UpdateBookAuthorCollection(this, Gdo); } else if (BookCategoryTabItem.IsSelected) { UIShared.UpdateBookCategoryCollection(this, Gdo); } else if (BookGenreTabItem.IsSelected) { UIShared.UpdateBookGenreCollection(this, Gdo); } else if (BookPlacementTabItem.IsSelected) { UIShared.UpdateBookPlacementCollection(this, Gdo); } else if (BookPublisherTabItem.IsSelected) { UIShared.UpdateBookPublisherCollection(this, Gdo); } else if (BookTypeTabItem.IsSelected) { UIShared.UpdateBookTypeCollection(this, Gdo); } }
private void NewBookPlacement_OnClick(object sender, RoutedEventArgs e) { var entity = UIShared.EditBookPlacement(this, Gdo, null, true); if (entity != null) { DataObject.BookPlacementId = entity.Id; } }
private void BookTypeTabItem_Loaded(object sender, RoutedEventArgs e) { UIShared.UpdateBookTypeCollection(this, Gdo); }
private void DeleteBookType() { UIShared.DeleteBookType(this, BookTypeDataGrid, Gdo); }
private void EditBookType(bool isNew = false) { UIShared.EditBookType(this, Gdo, BookTypeDataGrid.SelectedItem, isNew); }
private void DeleteBookPublisher() { UIShared.DeleteBookPublisher(this, BookPublisherDataGrid, Gdo); }
private void EditBookPublisher(bool isNew = false) { UIShared.EditBookPublisher(this, Gdo, BookPublisherDataGrid.SelectedItem, isNew); }
private void DeleteBookPlacement() { UIShared.DeleteBookPlacement(this, BookPlacementDataGrid, Gdo); }
private void EditBookPlacement(bool isNew = false) { UIShared.EditBookPlacement(this, Gdo, BookPlacementDataGrid.SelectedItem, isNew); }
private void DeleteBookCategory() { UIShared.DeleteBookCategory(this, BookCategoryDataGrid, Gdo); }
private void EditBookCategory(bool isNew = false) { UIShared.EditBookCategory(this, Gdo, BookCategoryDataGrid.SelectedItem, isNew); }
private void DeleteBookAuthor() { UIShared.DeleteBookAuthor(this, BookAuthorDataGrid, Gdo); }
private void EditBookPlacement_OnClick(object sender, RoutedEventArgs e) { UIShared.EditBookPlacement(this, Gdo, BookPlacementComboBox.SelectedItem, false, false); }
private void EditBookPublisher_OnClick(object sender, RoutedEventArgs e) { UIShared.EditBookPublisher(this, Gdo, BookPublisherComboBox.SelectedItem, false, false); }
private void EditBookCategory_OnClick(object sender, RoutedEventArgs e) { UIShared.EditBookCategory(this, Gdo, BookCategoryComboBox.SelectedItem, false, false); }