public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)) X( D' D5 C& }( @* o* L9 Y0 j/ s
{/ j/ h9 C! _6 o! c# j
int index = GetEquationIndexByName(eqMgr, name);: o: m& ~: p8 e- j
1 w5 J, r( F+ S if (index != -1)9 ^: y" B4 v( s: s4 Z
{
+ N2 X6 ^( X3 _/ A6 h5 B4 N* b eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;
2 e8 n/ O" k) ?' J1 D
" R# q* y. R: ?9 q- I return true;5 {5 y/ J! u1 ~% d/ Y5 m4 Y% v
}
0 v! L, T7 t0 x6 Q else2 Q! s' T. g4 `( [& e9 @
{$ {/ W& a# F/ y" z
return false;! o6 |+ y) C+ j5 m
}
2 u% i/ S3 t% E- Y2 P$ {. q2 U } B# E* n$ L- H) V
6 T( |! V: R+ t0 |( O |