Exemplo n.º 1
0
 protected virtual void OnStopUnZipFile(UnZipFileEventArgs e)
 {
     if (this.StopUnZipFile != null)
     {
         this.StopUnZipFile(this, e);
     }
 }
Exemplo n.º 2
0
        private void _updateManager_StartUnZipFile(object sender, UnZipFileEventArgs e)
        {
            #region if (this.InvokeRequired) {...}
            if (this.InvokeRequired)
            {
                this.Invoke(new UnZipFileEventHandler(_updateManager_StartUnZipFile), sender, e);
                return;
            }
            #endregion

            _progressBar.Value = 0;
            this.WriteLog(string.Format("Extract '{0}' - ", e.File.FullName));
        }
Exemplo n.º 3
0
        private void _updateManager_StopUnZipFile(object sender, UnZipFileEventArgs e)
        {
            #region if (this.InvokeRequired) {...}
            if (this.InvokeRequired)
            {
                this.Invoke(new UnZipFileEventHandler(_updateManager_StopUnZipFile), sender, e);
                return;
            }
            #endregion

            _lblProcessName.Text = "";
            _progressBar.Value   = 0;
            if (_updateManager.Error != UpdateManagerError.None)
            {
                this.WriteLog(string.Format("{0}=\"{1}\"", UpdateManagerErrorParse.ToString(_updateManager.Error), _updateManager.ErrorMessage));
            }
            else
            {
                this.WriteLog("ok");
            }
            this.WriteLog(Environment.NewLine);
        }