示例#1
0
		public Form1() 
		{
			mInitializing = true;
			ev = new Evaluator(Eval3.eParserSyntax.cSharp,false);
			ev.AddEnvironmentFunctions(this);
			ev.AddEnvironmentFunctions(new EvalFunctions());
			// This call is required by the Windows Form Designer.


			A = new Eval3.EvalVariable(0.0, typeof(double));
			B = new Eval3.EvalVariable(0.0, typeof(double));
			C = new Eval3.EvalVariable(0.0, typeof(double));

			// This call is required by the Windows Form Designer.
			InitializeComponent();

			A.Value = (double)updownA.Value;
			B.Value = (double)updownB.Value;
			C.Value = (double)updownC.Value;

			// Add any initialization after the InitializeComponent() call
			mInitializing = false;
			btnEvaluate_Click(null, null);
			btnEvaluate2_Click(null, null);
			btnEvaluate3_Click(null, null);
		}
示例#2
0
        public Form1()
        {
            mInitializing = true;
            ev            = new Evaluator(Eval3.eParserSyntax.cSharp, false);
            ev.AddEnvironmentFunctions(this);
            ev.AddEnvironmentFunctions(new EvalFunctions());
            // This call is required by the Windows Form Designer.


            A = new Eval3.EvalVariable(0.0, typeof(double));
            B = new Eval3.EvalVariable(0.0, typeof(double));
            C = new Eval3.EvalVariable(0.0, typeof(double));

            // This call is required by the Windows Form Designer.
            InitializeComponent();

            A.Value = (double)updownA.Value;
            B.Value = (double)updownB.Value;
            C.Value = (double)updownC.Value;

            // Add any initialization after the InitializeComponent() call
            mInitializing = false;
            btnEvaluate_Click(null, null);
            btnEvaluate2_Click(null, null);
            btnEvaluate3_Click(null, null);
        }