コード例 #1
0
 public static void UpdateBookAuthorCollection(DispatcherObject dob, GlobalDataObject gdo)
 {
     dob.InvokeIfRequired(() =>
     {
         gdo.UpdateBookAuthorCollection();
     }, DispatcherPriority.Render);
 }
コード例 #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;
        }