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