E3.AutoUpdater/frmAutoupdate.cs

(开头部分) 16KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Xml;
using System.Net;
using System.IO;
using System.Threading;
using System.Diagnostics;
using System.Configuration;

namespace E3.AutoUpdater
{
    public partial class frmAutoupdate : Form
    {
        private bool availableUpdate = false;
        private XmlDocument localXMLDoc = new XmlDocument();
        private string mainAppExe = string.Empty;
        private bool isRun = false;
        private string updateUrl = string.Empty;
        private string serverxmlTmpdir = "AutoUpdateTemp";
        private string updatexmlname = "UpdateList.xml";
        private string tempFilesdir = "files";
        private string localXmlFile = string.Empty;
        private string tempLocalxmlfile = string.Empty;

        public frmAutoupdate()
        {
            InitializeComponent();
        }

        private void frmAutoupdate_Load(object sender, EventArgs e)
        {

            panel2.Visible = false;
            btnFinish.Visible = false;


            localXmlFile = Application.StartupPath + "\\" + updatexmlname;
            string serverXmlFile = string.Empty;

            try
            {
                //从本地读取更新配置文件信息
                localXMLDoc = AppUpdater.GetXmlFiles(localXmlFile);
            }
            catch
            {
                MessageBox.Show("本地自动更新配置文件出错,请联系管理员!", "错误",
                    MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
                return;
            }

            //获取服务器地址
后面还有 414 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。