mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-17 02:51:37 -05:00
Fix crash loading feed window
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Common.Wpf.Extensions;
|
using System.Data.Entity;
|
||||||
|
using Common.Wpf.Extensions;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
@@ -16,8 +17,10 @@ namespace FeedCenter.Options
|
|||||||
|
|
||||||
public bool? Display(FeedCenterEntities database, Feed feed, Window owner)
|
public bool? Display(FeedCenterEntities database, Feed feed, Window owner)
|
||||||
{
|
{
|
||||||
|
database.Categories.Load();
|
||||||
|
|
||||||
// Bind the category combo box
|
// Bind the category combo box
|
||||||
categoryComboBox.ItemsSource = database.Categories;
|
categoryComboBox.ItemsSource = database.Categories.Local;
|
||||||
|
|
||||||
// Set the data context
|
// Set the data context
|
||||||
DataContext = feed;
|
DataContext = feed;
|
||||||
|
|||||||
Reference in New Issue
Block a user