Esempio n. 1
0
		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);
				}
			}
		}
Esempio n. 2
0
 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);
     }
 }