Exemple #1
0
 /// <summary>
 /// запуск программы заного
 /// </summary>
 public void Again()
 {
     knowlegeBase = XMLDataLoader.Deserialize();
     knowlegeBase.LoadRules();
     workMemory     = new WorkMemory(knowlegeBase.Facts);
     confirmedFacts = new List <Fact>();
     title          = string.Empty;
     ybtn.IsEnabled = true;
     nbtn.IsEnabled = true;
     ExplW.Clear();
     Run();
 }
Exemple #2
0
 /// <summary>
 /// конструктор окна
 /// </summary>
 public MainWindow()
 {
     InitializeComponent();
     knowlegeBase = XMLDataLoader.Deserialize();
     knowlegeBase.LoadRules();
     workMemory     = new WorkMemory(knowlegeBase.Facts);
     confirmedFacts = new List <Fact>();
     facts          = new List <string>();
     ExplW          = new ExplanationWindow();
     title          = string.Empty;
     Run();
 }