yangyin
2024-12-16 b4c867bf85d3edef5d084a3a26f13cbc6784bf58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
using System.Text;
using System.Linq;
 
namespace DPumpHydr.WinFrmUI.Volute
{
    public partial class MainViewPage
    {
        OccDesign3DCtrl _occDesign3dCtrl;
        OccDesign2DCtrl _occDesign2dCtrl;
        DesignMainDockPanel _designMainDockPanel;
 
        private void InitialDesginPanel()
        {
            this._occDesign3dCtrl = new OccDesign3DCtrl();
            this._occDesign3dCtrl.Size = new System.Drawing.Size(1000, 1000);
            this._occDesign3dCtrl.Name = "OccDesignCtrl3d";
            this._occDesign3dCtrl.Dock = DockStyle.Fill; 
            this._occDesign3dCtrl.Initial( );
 
            this._occDesign2dCtrl = new OccDesign2DCtrl();
            this._occDesign2dCtrl.Size = new System.Drawing.Size(1000, 1000);
            this._occDesign2dCtrl.Name = "OccDesignCtrl2d";
            this._occDesign2dCtrl.Dock = DockStyle.Fill; 
            this._occDesign2dCtrl.Initial( );
 
            this._designMainDockPanel = new DesignMainDockPanel();
            this._designMainDockPanel.Size = new System.Drawing.Size(1000, 1000);
            this._designMainDockPanel.Name = "OccDesignCtrl";
            this._designMainDockPanel.Dock = DockStyle.Fill;
            this._designMainDockPanel.DockText = "设计视图";
            _designMainDockPanel.SetOccCtrl(_occDesign3dCtrl, _occDesign2dCtrl);
 
            MainDockPanel.AddContent(_designMainDockPanel);
 
        }
        /// <summary>
        /// 更新1-8
        /// </summary>
        /// <param name="bundle"></param>
        private void RefreshSectShapeWhole18(ViewModel.SectionBundleInfo bundle)
        {
            _occDesign3dCtrl.RefreshAllSectShape18(bundle);
            _occDesign2dCtrl.RefreshAllSectShape18(bundle);
 
            this._sectAreaDockPanel.SetBindingData(bundle);
 
        }
        //更新单个断面
        private void RefreshSectShapeSingle18( ViewModel.SectionShapePara para)
        {
            this._sectionBundleInfo.FromSectionShapePara(para);
 
            _occDesign3dCtrl.RefreshSingleSectShape18(para);
 
            _occDesign2dCtrl.RefreshSingleSectShape18(para);
            this._sectAreaDockPanel.SetBindingData(para);
        }
    }
}