private void barBtnChart_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (filepath == null) { MessageBox.Show("未输入文件!"); return; } else { frmSampleOverview Overview = new frmSampleOverview(filepath); Overview.ShowDialog(); } }
private void barBtnChart_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (filepath == null) { MessageBox.Show("未输入文件!"); return; } else { if (Overview == null || Overview.IsDisposed) { Overview = new frmSampleOverview(sampleSumTable, _pFtLayer); Overview.Owner = this; Overview.Show(); } else { Overview.Activate(); } //注册事件 Overview.TransfEvent += Overview_TransfEvent; } }