Reinitialize a trend
Posted: Tue Apr 10, 2012 5:28 am
Hi. I need to reinitialize a trend, deleting the old values of the curve when a user logs out. Is it possible? In which way?
Thank you!
Best regards
Thank you!
Best regards
Support forum for iX Developer users
http://ixtalk.beijerelectronics.us/
Code: Select all
public partial class Screen1
{
static ICurve aCurve;
void Button1_Click(System.Object sender, System.EventArgs e)
{
//Stop aCurve from being updated
this.Trend1.Curves.Remove(aCurve);
}
void Button2_Click(System.Object sender, System.EventArgs e)
{
//Start aCurve up again
this.Trend1.Curves.Add(aCurve);
}
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
//Which curve to start/stop
aCurve = this.Trend1.Curves[0];
}
}