| | |
| | | using DevExpress.XtraBars; |
| | | using HStation.WinFrmUI.Xhs.Core.Properties; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | public DetailInfo4DsDlg() |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | this._isMaxWindowStatus = true;//最大化窗体覆盖任务栏 |
| | | this.navBtnMin.Visible = this.navBtnSize.Visible = this.navBtnClose.Visible = false; |
| | | this.navBtnMin.ElementClick += new DevExpress.XtraBars.Navigation.NavElementClickEventHandler(this.navBtnMin_ElementClick); |
| | | this.navBtnSize.ElementClick += new DevExpress.XtraBars.Navigation.NavElementClickEventHandler(this.navBtnSize_ElementClick); |
| | | this.navBtnClose.ElementClick += new DevExpress.XtraBars.Navigation.NavElementClickEventHandler(this.navBtnClose_ElementClick); |
| | | |
| | | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnFrmClosing); |
| | | this.Load += new System.EventHandler(this.OnFrmLoad); |
| | | this.Shown += new System.EventHandler(this.OnFrmShown); |
| | | |
| | | this.bbi下载BIM文件.Visibility = BarItemVisibility.Never; |
| | | |
| | | this.bsiPromptInfo.Caption = ""; |
| | | this.bsiPromptInfo.Caption = ""; |
| | | |
| | | this.navBtn手机页面.Visible = false; |
| | | |
| | | thePumpCtrl = new PumpFullInfoCtrl(); |
| | | thePumpCtrl.Name = "PumpFullInfoCtrl"; |
| | | thePumpCtrl.Dock = DockStyle.Fill; |
| | | this.panelMain.Controls.Add(thePumpCtrl); |
| | | } |
| | | |
| | | private void OnFrmLoad(object sender, EventArgs e) |
| | | { |
| | | //手机页面 |
| | | navBtn手机页面.Visible = false; |
| | | |
| | | //bbi添加串并联.Visibility = BarItemVisibility.Never;//功能没有完成 |
| | | |
| | | LocationDialog(); |
| | | |
| | | SetNavTileControlMoveAble(); |
| | | this.SetMaxWindowStatus(); |
| | | } |
| | | |
| | | public void SetBindindData(PumpMatchingViewModel pumpMatchingViewModel) |
| | | { |
| | | pumpFullInfoCtrl1.SetBindingData(pumpMatchingViewModel); |
| | | } |
| | | |
| | | private void OnFrmShown(object sender, EventArgs e) |
| | |
| | | //窗体尺寸:注意默认是不显示的 |
| | | public void IsDispBtn窗体尺寸(bool isDisp) |
| | | { |
| | | navBtnMin.Visible = navBtnSize.Visible = navBtnClose.Visible = isDisp; |
| | | |
| | | navBtnMin.Visible = navBtnbutton9.Visible = navBtnbutton10.Visible = isDisp; |
| | | //设置tileNav可移动 |
| | | if (isDisp == true) |
| | | SetNavTileControlMoveAble(); |
| | |
| | | protected void SetNavTileControlMoveAble() |
| | | { |
| | | this.tileNavPaneTop.OptionsPrimaryDropDown.CloseOnOuterClick = DevExpress.Utils.DefaultBoolean.False; |
| | | |
| | | this.tileNavPaneTop.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tileNavPane_MouseDown); |
| | | this.tileNavPaneTop.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tileNavPane_MouseMove); |
| | | this.tileNavPaneTop.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tileNavPane_MouseUp); |
| | |
| | | //设置窗体最大化,全屏 |
| | | private void SetMaxWindowStatus() |
| | | { |
| | | this.WindowState = FormWindowState.Normal; |
| | | // this.navBtnSize.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.SizeNormal32; |
| | | (this.navBtnSize.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "向下还原"; |
| | | |
| | | this.WindowState = FormWindowState.Maximized; |
| | | this.navBtnbutton9.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.SizeNormal32; |
| | | (this.navBtnbutton9.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "向下还原"; |
| | | this._isMaxWindowStatus = true;//最大化窗体状态 |
| | | this.Location = new Point(0, 0); |
| | | //Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen; |
| | |
| | | this.Size = new System.Drawing.Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height); |
| | | } |
| | | |
| | | //设置窗体(小窗) |
| | | private void SetNormalWindowStatus() |
| | | { |
| | | this.WindowState = FormWindowState.Normal; |
| | | // this.navBtnSize.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.SizeMax32; |
| | | (this.navBtnSize.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "最大化"; |
| | | |
| | | this.navBtnbutton9.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.Square32; |
| | | (this.navBtnbutton9.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "最大化"; |
| | | this._isMaxWindowStatus = false; |
| | | |
| | | var sq_width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width / 8; |
| | | var sq_height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height / 8; |
| | | this.Location = new Point(sq_width, sq_height); |
| | | this.Size = new System.Drawing.Size(sq_width * 6, sq_height * 6); |
| | | //this.Location = new Point(0, 0); |
| | | |
| | | //this.Size = new System.Drawing.Size(900,600);//rect.Width/2, rect.Height/2); |
| | | } |
| | | |
| | |
| | | |
| | | #endregion 可拖动缩放 |
| | | |
| | | #region 功能点击事件 |
| | | |
| | | private void navButton询价_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e) |
| | | { |
| | | } |
| | |
| | | alertControl1.AllowHtmlText = true; |
| | | alertControl1.Show(this, "tip", info); |
| | | } |
| | | |
| | | #endregion 功能点击事件 |
| | | } |
| | | } |