private void btnSave_Click(object sender, RoutedEventArgs e) { AILoader loader = new AILoader(); loader.SaveToFile(mRules, Name); }
private void btnLoad_Click(object sender, RoutedEventArgs e) { AILoader saved = new AILoader(); mRules = saved.LoadFromFile(Name); list.DataContext = mRules; }