Beispiel #1
0
 /// <summary>
 /// Handle updating of download status
 /// </summary>
 void Scraper_ToggleDlStatus(object sender, ToggleDownloadStatusEventArgs e)
 {
     if (e != null)
     {
         ToggleDownloadStatus(e.ForceTrue, e.ForceFalse);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Toggle download status with option to force
        /// </summary>
        /// <param name="forceTrue">Force download status to true</param>
        /// <param name="forceFalse">Force download status to false</param>
        public void ToggleDownloadStatus(bool forceTrue, bool forceFalse)
        {
            ToggleDownloadStatusEventArgs tdsea = new ToggleDownloadStatusEventArgs
            {
                ForceTrue  = forceTrue,
                ForceFalse = forceFalse
            };

            OnToggleDlStatus(tdsea);
        }
Beispiel #3
0
 protected virtual void OnToggleDlStatus(ToggleDownloadStatusEventArgs e)
 {
     ToggledDownloadStatus?.Invoke(this, e);
 }