public void loadLists() { try { sl = lfj.loadLists(); } catch { MessageBox.Show("No Lists to show"); } }
private void btnRefresh_Click(object sender, RoutedEventArgs e) { l = new StoredLists(); LoadFromJson lfj = new LoadFromJson(); l = lfj.loadLists(); lblTrendingOutput.Content = createListsForPrint(orderTrending()); lblMentionsOutput.Content = createListsForPrint(l.mentions); lblSirOutput1.Content = createListsForPrint(l.sir); lblNoiOutput1.Content = createListsForPrint(l.noi); }
public MainWindow() { InitializeComponent(); displayCount = 0; try { l = new StoredLists(); LoadFromJson lfj = new LoadFromJson(); l = lfj.loadLists(); orderTrending(); lblTrendingOutput.Content = createListsForPrint(orderTrending()); lblMentionsOutput.Content = createListsForPrint(l.mentions); lblSirOutput1.Content = createListsForPrint(l.sir); lblNoiOutput1.Content = createListsForPrint(l.noi); } catch { } }