private void EditSelectedFeed()
        {
            if (FeedListBox.SelectedItem == null)
            {
                return;
            }

            var feed = (Feed)FeedListBox.SelectedItem;

            var feedWindow = new FeedWindow();

            feedWindow.Display(Database, feed, Window.GetWindow(this));
        }
        private void AddFeed()
        {
            var feed = Feed.Create(Database);

            var category = (Category)CategoryListBox.SelectedItem;

            feed.Category = category;

            var feedWindow = new FeedWindow();

            var result = feedWindow.Display(Database, feed, Window.GetWindow(this));

            if (result.HasValue && result.Value)
            {
                Database.Feeds.Add(feed);

                FeedListBox.SelectedItem = feed;

                SetFeedButtonStates();
            }
        }