public NewsWindow(int feedID) { InitializeComponent(); this.viewModel = new ViewModel(feedID); this.table_News.ItemsSource = this.viewModel.News; this.FeedID = feedID; Mouse.OverrideCursor = Cursors.Arrow; }
/// <summary> /// Update DataGrid items /// </summary> private void Update() { try { this.viewModel = new ViewModel(); this.table_Feeds.ItemsSource = null; this.table_Feeds.ItemsSource = this.viewModel.Feeds; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public MainWindow() { try { InitializeComponent(); this.viewModel = new ViewModel(); this.table_Feeds.ItemsSource = this.viewModel.Feeds; } catch (Exception ex) { MessageBox.Show(ex.Message); } }