duheng
2025-03-27 d2ccacb3317aa6310f1b1bb5eb19fbdecba39ff9
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using MFire.WinFrmUI;
using Yw.WinFrmUI;
using Yw.Update;
 
namespace HStation.Desktop
{
    public partial class AutoUpdateConfirmDlg : DevExpress.XtraEditors.XtraForm
    {
        public AutoUpdateConfirmDlg()
        {
            InitializeComponent();
            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;
            //}
        }
 
        //确定事件
        private void GeneralOkAndCancelCtrl1_OkEvent()
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
 
 
    }
}