duheng
2025-03-05 85f520b745a683d6dcee70fb221d99a7715589af
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
using DevExpress.CodeParser;
using DevExpress.XtraEditors;
using Yw;
using Yw.Dto;
using Yw.WinFrmUI;
 
namespace HStation.WinFrmUI.PBS
{
    public partial class AddPlaceDlg : DevExpress.XtraEditors.XtraForm
    {
        public AddPlaceDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; ;
        }
 
        public void SetBindingData(string placeType)
        {
            switch (placeType)
            {
                case "Build":
                    // 创建 BuildWizardForm 实例
                    BuildWizardForm buildWizardForm = new BuildWizardForm();
                    // 设置控件的 Dock 属性为 Fill
                    buildWizardForm.Dock = DockStyle.Fill;
                    // 将 BuildWizardForm 添加到 panelControl1 中
                    this.panelControl1.Controls.Add(buildWizardForm);
                    break;
                    /* case "":
                         break;
 
                     case "":
                         break;
 
                     case "":
                         break;*/
            }
        }
 
        /// <summary>
        /// 确定
        /// </summary>
        private void GeneralOkAndCancelCtrl1_OkEvent()
        {
            //var model= new
        }
    }
}