public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)
. ]1 e% G+ @1 e2 | {# ~& o; p/ q1 O8 f: E
int index = GetEquationIndexByName(eqMgr, name);
: m- [8 ~+ e Q5 |& H5 M# P: y5 C. @" U2 |% f' Y
if (index != -1)8 }( H" R2 `' N) ^% `
{
E, O3 D2 B( p eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;
4 J* M! f/ L" G2 G7 k2 R8 D% ~
+ o. G2 y5 r S- Y# N return true;
: y5 R. M& y8 d9 a9 M! X* }& M }
& U3 U1 p6 h; Y6 c' P8 G5 v else
0 A; o8 T0 Z# v( j {2 f5 Q9 b0 Z+ P2 W) R! o& t
return false;- K3 _4 L# d# C: E; c2 o8 C. p+ T# {
}' ? O+ o1 n8 ~
}( s, e2 w6 Z. N ~. z* I1 R8 z
" O, b$ Y" v# g/ g9 @) D& }) \, ` |