Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        private void NewBookPlacement_OnClick(object sender, RoutedEventArgs e)
        {
            var entity = UIShared.EditBookPlacement(this, Gdo, null, true);

            if (entity != null)
            {
                DataObject.BookPlacementId = entity.Id;
            }
        }
Exemplo n.º 3
0
 private void BookTypeTabItem_Loaded(object sender, RoutedEventArgs e)
 {
     UIShared.UpdateBookTypeCollection(this, Gdo);
 }
Exemplo n.º 4
0
 private void DeleteBookType()
 {
     UIShared.DeleteBookType(this, BookTypeDataGrid, Gdo);
 }
Exemplo n.º 5
0
 private void EditBookType(bool isNew = false)
 {
     UIShared.EditBookType(this, Gdo, BookTypeDataGrid.SelectedItem, isNew);
 }
Exemplo n.º 6
0
 private void DeleteBookPublisher()
 {
     UIShared.DeleteBookPublisher(this, BookPublisherDataGrid, Gdo);
 }
Exemplo n.º 7
0
 private void EditBookPublisher(bool isNew = false)
 {
     UIShared.EditBookPublisher(this, Gdo, BookPublisherDataGrid.SelectedItem, isNew);
 }
Exemplo n.º 8
0
 private void DeleteBookPlacement()
 {
     UIShared.DeleteBookPlacement(this, BookPlacementDataGrid, Gdo);
 }
Exemplo n.º 9
0
 private void EditBookPlacement(bool isNew = false)
 {
     UIShared.EditBookPlacement(this, Gdo, BookPlacementDataGrid.SelectedItem, isNew);
 }
Exemplo n.º 10
0
 private void DeleteBookCategory()
 {
     UIShared.DeleteBookCategory(this, BookCategoryDataGrid, Gdo);
 }
Exemplo n.º 11
0
 private void EditBookCategory(bool isNew = false)
 {
     UIShared.EditBookCategory(this, Gdo, BookCategoryDataGrid.SelectedItem, isNew);
 }
Exemplo n.º 12
0
 private void DeleteBookAuthor()
 {
     UIShared.DeleteBookAuthor(this, BookAuthorDataGrid, Gdo);
 }
Exemplo n.º 13
0
 private void EditBookPlacement_OnClick(object sender, RoutedEventArgs e)
 {
     UIShared.EditBookPlacement(this, Gdo, BookPlacementComboBox.SelectedItem, false, false);
 }
Exemplo n.º 14
0
 private void EditBookPublisher_OnClick(object sender, RoutedEventArgs e)
 {
     UIShared.EditBookPublisher(this, Gdo, BookPublisherComboBox.SelectedItem, false, false);
 }
Exemplo n.º 15
0
 private void EditBookCategory_OnClick(object sender, RoutedEventArgs e)
 {
     UIShared.EditBookCategory(this, Gdo, BookCategoryComboBox.SelectedItem, false, false);
 }