Пример #1
0
        private void StepVerify()
        {
            mCurrentStep = UpdateSteps.VERIFY;
            this.OnUpdateStepChanged();

            this.logViewer.LogAdd(new LogItem(LogLevel.LOG_INFO, Translator.Instance.T("��ʼУ����°�...")));
            MemoryStream ms = this.updateDownloader.Output as MemoryStream;
            this.pictureBoxInstall.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;
            this.pictureBoxVerify.Image = global::ZForge.Controls.Update.Properties.Resources.gear_run_24;

            this.updateVerifier.Verify(ms.ToArray());
        }
Пример #2
0
        private void StepInstall()
        {
            mCurrentStep = UpdateSteps.INSTALL;
            this.OnUpdateStepChanged();

            this.logViewer.LogAdd(new LogItem(LogLevel.LOG_INFO, Translator.Instance.T("��ʼ��װ���°�...")));
            MemoryStream ms = this.updateDownloader.Output as MemoryStream;
            ms.Seek(0, SeekOrigin.Begin);
            this.updateInstaller.Install(ms);
        }
Пример #3
0
        public void Reset(bool bClearLog)
        {
            mCurrentStep = UpdateSteps.NONE;
            this.OnUpdateStepChanged();

            this.pictureBoxCheck.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;
            this.pictureBoxDownload.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;
            this.pictureBoxVerify.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;
            this.pictureBoxInstall.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;

            this.updateChecker.Reset();
            this.updateDownloader.Reset();
            this.updateVerifier.Reset();
            this.updateInstaller.Reset();

            if (bClearLog)
            {
                this.logViewer.Clear();
            }
        }
Пример #4
0
        private void StepDownload()
        {
            mCurrentStep = UpdateSteps.DOWNLOAD;
            this.OnUpdateStepChanged();

            string m = string.Format(Translator.Instance.T("��ʼ���ظ���. ({0})"), this.updateDownloader.URL);
            this.logViewer.LogAdd(new LogItem(LogLevel.LOG_INFO, m));
            this.pictureBoxDownload.Image = global::ZForge.Controls.Update.Properties.Resources.gear_run_24;
            this.pictureBoxVerify.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;
            this.pictureBoxInstall.Image = global::ZForge.Controls.Update.Properties.Resources.gear_stop_24;
            this.updateDownloader.Output = new MemoryStream();

            this.updateDownloader.Download();
        }
Пример #5
0
 public UpdateStepChangedEventArgs(UpdateSteps step)
 {
     this.mStep = step;
 }