Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     factor = new Certainty_factor();
     facts  = get_dictionary("..//..//facts.txt");
     rules  = get_rules("..//..//rules.txt");
     load();
 }
Beispiel #2
0
 private void load()
 {
     factor = new Certainty_factor();
     foreach (var item in factor.facts.Keys)
     {
         if (item.First() == 'T')
         {
             checkedListBoxT.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'S')
         {
             checkedListBoxS.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'P')
         {
             checkedListBoxP.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'Z')
         {
             checkedListBoxZ.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'C')
         {
             checkedListBoxС.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'W')
         {
             checkedListBoxW.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'F')
         {
             checkedListBoxF.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'O')
         {
             checkedListBoxO.Items.Add("" + item + ": " + factor.facts[item]);
         }
         if (item.First() == 'G')
         {
             checkedListBoxG.Items.Add("" + item + ": " + factor.facts[item]);
         }
     }
 }