public StatsEditor() { InitializeComponent(); ListBox.ItemsSource = StatsBuilder.GetStats(); ListBox.SelectionChanged += SelectionChanged; }
private void Reload(object sender, RoutedEventArgs e) { ListBox.ItemsSource = StatsBuilder.GetStats(); }
private void Save(object sender, RoutedEventArgs e) { StatsBuilder.Save((List <CreatureBaseStats>)ListBox.ItemsSource); Reload(null, null); }