public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)
: d. t; y& R. j! g- M* P {
?* G% P) D2 v8 H int index = GetEquationIndexByName(eqMgr, name);3 `5 _ Q0 ]0 x3 O( [3 J W
5 _# l u2 O6 v8 v, P9 ~, N; P if (index != -1)
) ~, p# D$ j3 F# n" q: b, C' { {
6 |* [1 ~% ~% {0 o- Z6 l# s. y eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;% }3 Y. L% d2 J& R& Y; k
$ J! k5 a8 a7 a" @9 f
return true;
# }* ~/ q1 l* h- ?+ j8 B }) p7 \" ?% a, z
else
. H2 s7 e, J: Z {" W t1 o, k c1 z( s8 w
return false;
3 ^/ V* x- V+ ~4 [# w' K2 L }
$ ]1 a' W/ L0 N }1 B0 U5 w1 F) U
: R# y2 O0 r" v( @3 N2 d+ S |