Exemplo n.º 1
0
 void BtnLoadConstituentClick(object sender, EventArgs e)
 {
     statusLabel.Text = "Loading new constituent...";
     DisableFormControls();
     _kb.Constituents.Add(txtConstituentFileName.Text);
     SUMO.WriteConfiguration();
     if (SUMO.Preferences["cache"].ToLower() == "yes".ToLower())
     {
         _kb.Cache();
     }
     _kb.LoadInferenceEngine();
     PopulateManifest();
     EnableFormControls();
     MessageBox.Show("Constituent Added !");
     statusLabel.Text = "Ready";
 }