public static void UpdateBookPublisherCollection(DispatcherObject dob, GlobalDataObject gdo) { dob.InvokeIfRequired(() => { gdo.UpdateBookPublisherCollection(); }, DispatcherPriority.Render); }
public BookEditorWindow(GlobalDataObject gdo) { Gdo = gdo; InitializeComponent(); if (!UIHelper.DesignMode) { BookAuthorComboBox.ItemsSource = Gdo.UpdateBookAuthorCollection(); BookCategoryComboBox.ItemsSource = Gdo.UpdateBookCategoryCollection(); BookGenreComboBox.ItemsSource = Gdo.UpdateBookGenreCollection(); BookPublisherComboBox.ItemsSource = Gdo.UpdateBookPublisherCollection(); BookTypeComboBox.ItemsSource = Gdo.UpdateBookTypeCollection(); BookPlacementComboBox.ItemsSource = Gdo.UpdateBookPlacementCollection(); } DialogResultState = DialogResultStateType.Ok; }