Exemplo n.º 1
0
 public static void UpdateBookPublisherCollection(DispatcherObject dob, GlobalDataObject gdo)
 {
     dob.InvokeIfRequired(() =>
     {
         gdo.UpdateBookPublisherCollection();
     }, DispatcherPriority.Render);
 }
Exemplo n.º 2
0
        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;
        }