From ce0cdf82989d5fead5618d1988a7d1aba9746d57 Mon Sep 17 00:00:00 2001 From: chenn <gu.beic@qq.com> Date: 星期五, 11 四月 2025 16:56:01 +0800 Subject: [PATCH] 2d标注隐藏与显示;1-8断面隐藏与显示强制刷新 --- WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_InitialRibbon.cs | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_InitialRibbon.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_InitialRibbon.cs index 37c5176..6a75352 100644 --- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_InitialRibbon.cs +++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_InitialRibbon.cs @@ -84,6 +84,7 @@ private System.Windows.Forms.RibbonCheckBox RbtnChk鎴潰18; private System.Windows.Forms.RibbonCheckBox RbtnChk鏍囨敞; + //private System.Windows.Forms.RibbonCheckBox RbtnChk鎴潰910; private System.Windows.Forms.RibbonButton Rbtn鏁版嵁瀵煎嚭XML; private System.Windows.Forms.RibbonButton Rbtn鏁版嵁瀵煎叆XML; @@ -925,12 +926,32 @@ if (RbtnChk鎴潰18.Checked) { this._occDesign3dCtrl.SetAllSectionCurveVisible(true ); + this._occDesign3dCtrl.Invalidate(true); } else { this._occDesign3dCtrl.SetAllSectionCurveVisible(false); + this._occDesign3dCtrl.Invalidate(true); } }; + //RbtnChk鎴潰910 = new System.Windows.Forms.RibbonCheckBox(); + //RbtnChk鎴潰910.Checked = false ; + ////RbtnChk鎴潰18.Image = GlobalResource.BuildImage("circle-check.png", 40, 40); + //RbtnChk鎴潰910.Name = "RbtnChk鎴潰910"; + //RbtnChk鎴潰910.Text = "鎴潰9銆�10"; + //RbtnChk鎴潰910.Visible = true; + //RbtnChk鎴潰910.CheckBoxCheckChanged += (sender, e) => { + // if (RbtnChk鎴潰910.Checked) + // { + // this._occDesign3dCtrl.SetAllSection910CurveVisible(true ); + // this._occDesign3dCtrl.Invalidate(true); + // } + // else + // { + // this._occDesign3dCtrl.SetAllSection910CurveVisible(false); + // this._occDesign3dCtrl.Invalidate(true); + // } + //}; RbtnChk鏍囨敞 = new System.Windows.Forms.RibbonCheckBox(); RbtnChk鏍囨敞.Checked = false; @@ -941,10 +962,12 @@ if (!RbtnChk鏍囨敞.Checked) { this._occDesign2dCtrl.SetDimVisible(true); + this._occDesign2dCtrl.Invalidate(true); } else { this._occDesign2dCtrl.SetDimVisible(false); + this._occDesign2dCtrl.Invalidate(true); } }; @@ -1011,6 +1034,7 @@ ribbonPanel鏁版嵁瀵煎叆.Items.Add(Rbtn鏁版嵁瀵煎叆XML); ribbonPanel缁勪欢鏄剧ず.Items.Add(RbtnChk鎴潰18); + //ribbonPanel缁勪欢鏄剧ず.Items.Add(RbtnChk鎴潰910); ribbonPanel缁勪欢鏄剧ず.Items.Add(RbtnChk鏍囨敞); RGroup涓嬫媺妗�.Items.Add(RBox鍥惧眰); -- Gitblit v1.9.3