如果我手动单击按钮,它工作正常。如果我尝试通过 加载它Form1_Load
,一切正常,但只有一行。
代码:
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
playTrend_Click(sender, e);
}
private void playTrend_Click(object sender, EventArgs e)
{
aaTrendControl1.FileOpenEx("\\\\path\\tochart\\e_chart.aaTrend");
aaTrendControl1.ToolBarVisible = true;
aaTrendControl1.TimeBarVisible = false;
aaTrendControl1.TagPickerVisible = false;
aaTrendControl1.RealTimeMode = true;
aaTrendControl1.GridVisible = false;
}
private void aaTrendControl1_Load(object sender, EventArgs e)
{
}
如果我手动单击playTrend
按钮,一切正常。但是,在运行该Form1_Load
过程时,一切都按原样执行,除了aaTrendControl1.GridVisible = false;
有任何想法吗?