private void ListBox_Loaded(object sender, RoutedEventArgs e) { try { _categoriesList = FileIOService.LoadDataCategories(PATH); } catch (Exception ex) { MessageBox.Show(ex.Message); this.Close(); } categList.ItemsSource = _categoriesList; }
private void ListBox_Loaded(object sender, RoutedEventArgs e) { try { _categoriesList = FileIOService.LoadDataCategories(PATH); } catch (Exception ex) { MessageBox.Show(ex.Message); this.Close(); } categList.ItemsSource = _categoriesList; }