示例#1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            ConfigUtil.LoadConfig();

            m_VersionPath      = ConfigUtil.GetVersionPath();
            m_PatchPath        = ConfigUtil.GetPatchPath();
            m_ResourcePath     = ConfigUtil.GetResourcePath();
            m_OldVersion       = ConfigUtil.GetOldVersion();
            m_NewVersion       = ConfigUtil.GetNewVersion();
            m_UpdaterUrl       = ConfigUtil.GetUpdaterUrl();
            m_IgnoreFileList   = ConfigUtil.GetIgnoreFileList();
            m_IgnoreFolderList = ConfigUtil.GetIgnoreFolderList();

            m_packer = new Process();

            InitFormData();
        }
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != typeof(VersionData))
            {
                return(false);
            }

            if (obj is VersionData)
            {
                VersionData vd = (VersionData)obj;

                return(this.GetHashCode() == vd.GetHashCode());
            }
            return(false);
        }
示例#3
0
        public static void SetNewVersion(VersionData value)
        {
            string version = string.Format("{0}_{1}_{2}_{3}", value.MajorNumber, value.MinorNumber, value.RevisionNumber, value.BuildNumber);

            SetValue("NewVersion", version);
        }