Beispiel #1
0
        private void GetUpdateDetailsProcess()
        {
            if (_udm != null && _lastGetUDMTime.AddHours(1).Ticks > DateTime.Now.Ticks)
            {
                return;
            }

            UpdateDetailsManager udm = new UpdateDetailsManager(this);

            _htmlDetailsInfo = udm.GetHtmlReport();
            _udm             = udm;
        }
Beispiel #2
0
 private void WebReader_StopDownloadFile(object sender, WebReaderEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new WebReaderEventHandler(WebReader_StopDownloadFile), sender, e);
     }
     else
     {
         _lblProcessName.Text = "";
         _progressBar.Value   = 0;
         if (e.Error != UpdateManagerError.None)
         {
             this.WriteLog(string.Format("{0}=\"{1}\"", UpdateManagerErrorParse.ToString(e.Error), e.ErrorMessage));
         }
         else
         {
             this.WriteLog(string.Format("ok ({0})", UpdateDetailsManager.ConvertToSize(e.Size)));
         }
         this.WriteLog(Environment.NewLine);
     }
 }