| | |
| | | using Yw.WinFrmUI; |
| | | using Yw; |
| | | using PBS.Model; |
| | | using DevExpress.XtraEditors; |
| | | |
| | | namespace IBox.WinFrmUI |
| | | { |
| | |
| | | IBoxFormOverview.SendData += SendText; |
| | | xtraTabPage2.Controls.Add(IBoxFormOverview); |
| | | xtraTabPage2.PageVisible = true; |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage2; |
| | | |
| | | |
| | | } |
| | |
| | | { |
| | | xtraTabControl1.TabPages.ForEach(b => |
| | | { |
| | | if (b.Controls.Count > 0) |
| | | if (b.Name != "xtraTabPage12") |
| | | { |
| | | b.Controls.RemoveAt(0); |
| | | if (b.Controls.Count > 0) |
| | | { |
| | | b.Controls.RemoveAt(0); |
| | | } |
| | | b.PageVisible = false; |
| | | } |
| | | b.PageVisible = false; |
| | | }); |
| | | } |
| | | |
| | |
| | | IBoxFormMonitor.SendData += SendText; |
| | | xtraTabPage1.Controls.Add(IBoxFormMonitor); |
| | | xtraTabPage1.PageVisible = true; |
| | | |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage1; |
| | | |
| | | } |
| | | |
| | |
| | | //IBoxFormControll.SendData += SendText; |
| | | //xtraTabPage7.Controls.Add(IBoxFormControll); |
| | | xtraTabPage7.PageVisible = true; |
| | | |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage7; |
| | | |
| | | } |
| | | |
| | |
| | | IBoxFormParams.SendData += SendText; |
| | | xtraTabPage5.Controls.Add(IBoxFormParams); |
| | | xtraTabPage5.PageVisible = true; |
| | | |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage5; |
| | | } |
| | | |
| | | private void barButtonItem4_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | IBoxFormLog.SendData += SendText; |
| | | xtraTabPage8.Controls.Add(IBoxFormLog); |
| | | xtraTabPage8.PageVisible = true; |
| | | |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage8; |
| | | } |
| | | |
| | | private void barButtonItem7_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | IBoxFormProtocol.SendData += SendText; |
| | | xtraTabPage3.Controls.Add(IBoxFormProtocol); |
| | | xtraTabPage3.PageVisible = true; |
| | | |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage3; |
| | | } |
| | | |
| | | private void barButtonItem8_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | IBoxFormRule.SendData += SendText; |
| | | xtraTabPage4.Controls.Add(IBoxFormRule); |
| | | xtraTabPage4.PageVisible = true; |
| | | |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage4; |
| | | } |
| | | |
| | | IBoxFormOverview IBoxFormOverview; |
| | |
| | | IBoxFormSystemInfo.SendData += SendText; |
| | | xtraTabPage9.Controls.Add(IBoxFormSystemInfo); |
| | | xtraTabPage9.PageVisible = true; |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage9; |
| | | } |
| | | |
| | | private void barButtonItem13_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | IBoxFormDataFilter.SendData += SendText; |
| | | xtraTabPage10.Controls.Add(IBoxFormDataFilter); |
| | | xtraTabPage10.PageVisible = true; |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage10; |
| | | } |
| | | |
| | | private void barButtonItem14_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | IBoxFormEnergyAnalysis.SendData += SendText; |
| | | xtraTabPage11.Controls.Add(IBoxFormEnergyAnalysis); |
| | | xtraTabPage11.PageVisible = true; |
| | | xtraTabControl1.SelectedTabPage = xtraTabPage11; |
| | | } |
| | | |
| | | public IBoxForm(Facility facilities = null) |
| | |
| | | MessageBoxHelper.ShowInfo("这个电脑蓝牙不可用!"); |
| | | } |
| | | } |
| | | |
| | | private void imageSlider1_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |