public void Update() { this.InvokeIfRequired(() => { PrepareFilter(); Gdo.UpdateBookCollection(); }, DispatcherPriority.Render); }
public MainWindow() { _gdo = new GlobalDataObject(); InitializeComponent(); SourceInitialized += MainWindow_SourceInitiated; Loaded += MainWindow_Loaded; Closing += MainWindow_Closing; Registry.RegisterInstance(this); if (!UIHelper.DesignMode) { BookAuthorComboBox.ItemsSource = Gdo.UpdateBookAuthorCollection(); BookPlacementComboBox.ItemsSource = Gdo.UpdateBookPlacementCollection(); } }