ningshuxia
2025-03-07 f1dd96fcf0f0397b0cbcca3ee6ef1936f1e86e45
Desktop/HStation.Desktop.Xhs.Core/AutoUpdater/AutoUpdateConfirmDlg.cs
@@ -10,6 +10,7 @@
using DevExpress.XtraEditors;
using MFire.WinFrmUI;
using Yw.WinFrmUI;
using Yw.Update;
namespace HStation.Desktop
{
@@ -21,6 +22,18 @@
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.layoutControl1.SetupLayoutControl();
            this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent;
            this.Load += AutoUpdateConfirmDlg_Load;
        }
        //加载事件
        private void AutoUpdateConfirmDlg_Load(object sender, EventArgs e)
        {
            var description = VersionHelper.GetServerDescription(UpdateConfigHelper.ServerIP, UpdateConfigHelper.ServerPort);
            this.txtDescription.EditValue = description;
            //if (string.IsNullOrEmpty(description))
            //{
            //    this.itemForDescription.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            //}
        }
        //确定事件