From 5610ef481946ff15d856f65e08b3f25aeaf3e269 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 24 九月 2024 10:54:15 +0800 Subject: [PATCH] 新增曲线设置界面 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-ModelFile/SelectXhsProjectModelFileWizardPage.cs | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-ModelFile/SelectXhsProjectModelFileWizardPage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-ModelFile/SelectXhsProjectModelFileWizardPage.cs index aa3583d..67895c2 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-ModelFile/SelectXhsProjectModelFileWizardPage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-ModelFile/SelectXhsProjectModelFileWizardPage.cs @@ -8,10 +8,15 @@ public SelectXhsProjectModelFileWizardPage() { InitializeComponent(); - this.layoutControl1.SetupLayoutControl(); } - private ImportXhsProjectViewModel _vm = null; + /// <summary> + /// 椤甸潰鐘舵�佹敼鍙樹簨浠� + /// </summary> + public event Action PageStateChangedEvent; + + private ImportXhsProjectViewModel _vm = null;//鎿嶄綔瀵硅薄 + private bool _isInitialize = false;//鏄惁鍒濆鍖� /// <summary> /// 鍒濆鍖� @@ -27,16 +32,7 @@ } /// <summary> - /// 鏄惁鍒濆鍖� - /// </summary> - public bool IsInitialize - { - get { return _isInitialize; } - } - private bool _isInitialize = false; - - /// <summary> - /// 鏄惁鍏佽杩斿洖涓婁竴姝� + /// 鍏佽涓婁竴姝� /// </summary> public bool AllowPrev { @@ -44,15 +40,18 @@ } /// <summary> - /// 鏄惁鍏佽杩涘叆涓嬩竴姝� + /// 鍏佽涓嬩竴姝� /// </summary> public bool AllowNext { - get { return true; } + get + { + return _isInitialize; + } } /// <summary> - /// 鏄惁鍏佽鍙栨秷 + /// 鍏佽鍙栨秷 /// </summary> public bool AllowCancel { @@ -60,7 +59,7 @@ } /// <summary> - /// 鏄惁鍏佽瀹屾垚 + /// 鍏佽瀹屾垚 /// </summary> public bool AllowComplete { @@ -68,7 +67,7 @@ } /// <summary> - /// 鑳藉惁杩斿洖涓婁竴姝� + /// 鑳藉惁涓婁竴姝� /// </summary> public bool CanPrev() { @@ -76,16 +75,21 @@ } /// <summary> - /// 鑳藉惁杩涘叆涓嬩竴姝� + /// 鑳藉惁涓嬩竴姝� /// </summary> public bool CanNext() { + if (!_isInitialize) + { + return false; + } this.dxErrorProvider1.ClearErrors(); if (string.IsNullOrEmpty(this.btnEditSelectModelFile.Text.Trim())) { this.dxErrorProvider1.SetError(this.btnEditSelectModelFile, "蹇呴�夐」"); return false; } + _vm.ZipFile = this.btnEditSelectModelFile.Text.Trim(); return true; } @@ -105,7 +109,6 @@ return false; } - //閫夋嫨妯″瀷鏂囦欢 private void btnEditSelectModelFile_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { @@ -116,11 +119,8 @@ if (dlg.ShowDialog() == DialogResult.OK) { var fileName = dlg.FileName; - _vm.ZipFile = fileName; this.btnEditSelectModelFile.EditValue = fileName; } } - - } -} +} \ No newline at end of file -- Gitblit v1.9.3