public static void UpdateBookAuthorCollection(DispatcherObject dob, GlobalDataObject gdo) { dob.InvokeIfRequired(() => { gdo.UpdateBookAuthorCollection(); }, 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; }