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();
|
}
|
|
|
}
|
}
|