I have cerated a section region helpers in which I hve some calculations using Series<int>. Iwanted to call these values in OnRender() for drawing purpuses.
I have use the print function in the region helpers ass well as in OnRender() to vue if there is any mistake. The print function pups up the values from the region helpers which are different from zero, but those from OnRender() have the value zero.
Here is the snapshot of the code:
#region Variables private Series<int> strength; if (State == State.DataLoaded) { strength = new Series<int>(this); } #endregion #region Helpers strength[count] = temp_strength[i]; Print("strength" + " Size " + ": " + strength[count]); #endregion protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { for(int idx = 0; idx < count; idx++) { int valStrength = strength.GetValueAt(idx); Print("ValStrength" + " Size " + ": " + ValStrength); } }
Best regards,
Comment