public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue) ) I) _4 s- N+ c# |! d9 p5 u{3 A n y+ m# [! A int index = GetEquationIndexByName(eqMgr, name); : r# K) s! H' O0 V6 _1 G1 W 6 H+ d% C' U. e( d$ u; C% Oif (index != -1) 8 Z! L% K8 R0 P3 U" j{6 z0 L. N8 e6 w, C5 ` eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;3 P3 U6 U. A3 J, }5 ~
( L( \9 F9 m% }" s: J7 xreturn true;8 f$ [& n' _- _6 g0 V8 H0 |# i }9 K: H1 }8 T* [6 H8 \1 N else ( C% ] d8 C- D/ ` W{5 Y; _2 S" b* w8 O6 v return false; 8 s/ ?4 l8 \4 Y+ M5 L& B} 8 I, {3 c& M0 I x1 O1 j2 m}o& {0 ~% E, h+ A2 v . j2 {5 `( v0 Q( G; c
|