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); }
static void addFunction(string format, mathFunction.functionDelWithResult function) { addFunction(format, null, function, null); }