private void bdzStatic_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FrmyearSel fs = new FrmyearSel(); if (fs.ShowDialog() == DialogResult.OK) { if (curDevice is UCDeviceBDZ) { FrmLayoutSubstationInfo_AHTL fa = new FrmLayoutSubstationInfo_AHTL(); fa.BiandianzhanSH(fs.Year); } else if (curDevice is UCDeviceDY) { FrmLayoutPowerSubstationInfo_SH fa = new FrmLayoutPowerSubstationInfo_SH(); fa.BiandianzhanSH(fs.Year); } if (curDevice.GetType() != "20" && curDevice.GetType() != "30" && curDevice.GetType() != "15") { string[] array = new string[] { curDevice.GetType() }; FrmDeviceStatic fsd = new FrmDeviceStatic(); fsd.Init(array, fs.Year); fsd.ShowDialog(); } } }
private void xlStatic_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FrmyearSel fs = new FrmyearSel(); if (fs.ShowDialog() == DialogResult.OK) { FrmLayoutLine fa = new FrmLayoutLine(); fa.Linestatic(fs.Year); } }