Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// End directory scan progress indicator.
        /// </summary>
        void moDir_EventEndOfProgress(object poSender, EventParameters2 poEventArgs)
        {
            string sMessage = string.Empty;

            if (msAction == "Cancel")
            {
                sMessage = "Directory scan cancelled.";
            }
            else
            {
                sMessage = "Directory scan complete.";
            }
            SignalEndOfProgress("DirList", sMessage);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Update directory scan progress indicator.
 /// </summary>
 void moDir_EventUpdateProgress(object poSender, EventParameters2 poEventArgs)
 {
     SignalUpdateProgress(1, "DirList", "Scanning directories ...");
 }
Exemplo n.º 4
0
        /// <summary>
        /// Start directory scan progress indicator.
        /// </summary>
        void moDir_EventBeginProgress(object poSender, EventParameters2 poEventArgs)
        {
            long nEstimate = mbProcessingNew ? mnNewFilesEstimate : mnOldFilesEstimate;

            SignalBeginProgress((int)nEstimate, "DirList", "Scanning directories ...");
        }