コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: i-Living/Smart-IS
 /// <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();
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: i-Living/Smart-IS
 /// <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();
 }