Beispiel #1
0
 /// <summary>
 /// Trigger end of progress event.
 /// </summary>
 /// <param name="psMethod">Current method to which this applies.</param>
 public void SignalEndOfProgress(string psMethod)
 {
     if (EventEndOfProgress != null)
     {
         EventParameters2 oEventParameters = new EventParameters2(psMethod);
         EventEndOfProgress(this, oEventParameters);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Start directory scan progress indicator.
 /// </summary>
 void _dir_EventBeginProgress(object poSender, EventParameters2 poEventArgs)
 {
     try
     {
         SignalBeginProgress((int)_dirFilesEstimate, "DirList", "Scanning directories ...");
     }
     catch (Exception ex)
     {
         _dirFilesEstimate = 0;
     }
 }
Beispiel #3
0
        /// <summary>
        /// End directory scan progress indicator.
        /// </summary>
        void _dir_EventEndOfProgress(object poSender, EventParameters2 poEventArgs)
        {
            string message = string.Empty;

            if (_action == "Cancel")
            {
                message = "Directory scan cancelled.";
            }
            else
            {
                message = "Directory scan complete.";
            }
            SignalEndOfProgress("DirList", message);
        }
Beispiel #4
0
 /// <summary>
 /// Update directory scan progress indicator.
 /// </summary>
 void _dir_EventUpdateProgress(object poSender, EventParameters2 poEventArgs)
 {
     SignalUpdateProgress(1, "DirList", "Scanning directories ...");
 }