private void showDetails(object obj) { Details detailsWindow = new Details(Feed); bool? shallUpdate = detailsWindow.ShowDialog(); if (shallUpdate != null) { if ((bool)shallUpdate) { DataConnection.getFeeds().Update((detailsWindow.DataContext as DetailsViewModel).CacheFeed); } } }
private void addFeed(object o) { Details detailsWindow = new Details(); bool? shallAdd = detailsWindow.ShowDialog(); if (shallAdd != null) { if ((bool)shallAdd) DataConnection.getFeeds().Add((detailsWindow.DataContext as DetailsViewModel).CacheFeed); } }