示例#1
0
 private void discard_Click(object sender, EventArgs e)
 {
     EnabledControls(true);
     helper.Text = "";
     dialog_dvg.Rows.Clear();
     viewFrame        = null;
     inferenceMachine = null;
 }
示例#2
0
        private void apply_Click(object sender, EventArgs e)
        {
            inferenceMachine = new LogicalInferenceMachine(knowledgeBase)
            {
                DialogDGV = dialog_dvg,
                Reasoning = reasoning
            };

            for (int i = 0; i < dialog_dvg.Rows.Count; i++)
            {
                viewFrame.Slots[i].Value = dialog_dvg.Rows[i].Cells[1].Value.ToString();
            }

            inferenceMachine.LogicalInferenceStart(viewFrame);
        }