From ca5f300a7cef85d22b5e0f9d59d117c49f9909b3 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期二, 19 十一月 2024 09:42:16 +0800
Subject: [PATCH] 完善资产界面

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectDlg.cs |   37 ++++++++++++++++++++++++++-----------
 1 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectDlg.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectDlg.cs
index 750e9b1..6219d4b 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectDlg.cs
@@ -1,4 +1,7 @@
-锘縰sing DevExpress.XtraLayout.Utils;
+锘縰sing DevExpress.XtraEditors;
+using DevExpress.XtraLayout.Utils;
+using HStation.WinFrmUI.Xhs;
+using HStation.WinFrmUI.Xhs.Core.Properties;
 
 namespace HStation.WinFrmUI
 {
@@ -7,14 +10,16 @@
         public ImportXhsProjectDlg()
         {
             InitializeComponent();
+            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
         }
-
 
         private readonly ImportXhsProjectViewModel _vm = new();
         private ImportXhsProjectManager _wizard;
 
+        private static bool IsAddItem = true;
+
         /// <summary>
-        /// 
+        ///
         /// </summary>
         public ImportXhsProjectViewModel ViewModel
         {
@@ -22,7 +27,7 @@
         }
 
         /// <summary>
-        /// 
+        ///
         /// </summary>
         public void SetBindingData()
         {
@@ -30,12 +35,23 @@
             _wizard.SelectedPageChangedEvent += _wizard_SelectedPageChangedEvent;
             _wizard.SelectedPageStateChangedEvent += _wizard_SelectedPageStateChangedEvent; ;
             _wizard.InitialManager(new IWizardPage<ImportXhsProjectViewModel>[] {
-                this.selectXhsProjectModelFileWizardPage,
                 this.inputXhsProjectInfoWizardPage,
                 this.setXhsProjectMapLocationWizardPage,
                 this.generateXhsProjectWizardPage,
-                this.importXhsProjectCompletedWizardPage
+                 this.projectResultShowPanel1
             });
+        }
+
+        //鍒犻櫎瀵艰埅鏉tem
+        private void DeleteItem()
+        {
+            if (stepProgressBar1.Items.Count >= 5)
+            {
+                for (int i = 0; i < 3; i++)
+                {
+                    stepProgressBar1.Items.RemoveAt(2);
+                }
+            }
         }
 
         //閫夋嫨椤甸潰鏀瑰彉
@@ -111,10 +127,10 @@
             {
                 if (this.DialogResult == DialogResult.OK)
                 {
-                    if (!_wizard.Complete())
-                    {
-                        e.Cancel = true;
-                    }
+                    /*  if (!_wizard.Complete())
+                      {
+                          e.Cancel = true;
+                      }*/
                 }
                 else if (this.DialogResult == DialogResult.Cancel)
                 {
@@ -127,7 +143,6 @@
                 {
                     e.Cancel = true;
                 }
-
             }
         }
     }

--
Gitblit v1.9.3