SampleApp.MainForm.DoInference C# (CSharp) Method

DoInference() private method

private DoInference ( ) : void
return void
        private void DoInference()
        {
            // Setting inputs
            IS.SetInput("RightDistance", Convert.ToSingle(txtRight.Text));
            IS.SetInput("LeftDistance", Convert.ToSingle(txtLeft.Text));
            IS.SetInput("FrontalDistance", Convert.ToSingle(txtFront.Text));

            // Setting outputs
            try
            {
                double NewAngle = IS.Evaluate("Angle");
                txtAngle.Text = NewAngle.ToString("##0.#0");
                Angle += NewAngle;
            }
            catch (Exception)
            {
            }
        }
MainForm