|
public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)+ ~0 r. u" U1 N- J/ X
{
+ ^/ t6 t( t' o9 v+ s: ^; w0 w int index = GetEquationIndexByName(eqMgr, name);
& W/ ~3 q1 W2 C: f# P1 i$ q/ e3 E! E
* L: M6 f# I& ^) ?+ s9 B+ b if (index != -1)
& ]0 W! [% p. ^; I' Q {
' W" V3 O3 w8 J3 q m eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;
. U& a2 x) B3 N: o* z
0 ^" | V+ W- j7 m# p return true;
7 c9 x4 c+ r+ A( ]5 M) C }$ i) o* b* A% b# {
else7 Z- i) u V! m9 z$ _" A% \3 _
{0 e h5 z! O- e' b: ]% {5 t
return false;* X: Q, e) Z% g, a
}
) o- u ]1 f9 \6 A* X5 I }
1 |3 s. z# \6 ~4 \, Q$ a4 }
0 _5 H5 V* B& h5 t8 p, Q |
|