Пример #1
0
        static void addFunction(string format, mathFunction.functionDel function, mathFunction.functionDelWithResult functionWRes, mathFunction.functionDelReturnsString functionString)
        {
            mathFunction m = null;

            if (function != null)
            {
                m = new mathFunction(format, function);
            }
            else if (functionWRes != null)
            {
                m = new mathFunction(format, functionWRes);
            }
            else
            {
                m = new mathFunction(format, functionString);
            }

            functions.Add(m);
            // MPTVSeriesLog.Write("Added MathFunction: ", m.form, MPTVSeriesLog.LogLevel.Debug);
        }
Пример #2
0
 static void addFunction(string format, mathFunction.functionDelReturnsString function)
 {
     addFunction(format, null, null, function);
 }