Пример #1
0
 void OnFileSucceeded(object sender, FinishedOperationEventArgs args)
 {
     watch.Stop();
     FileOperationTime += watch.Elapsed;
     ++SucceededFileCount;
     if (args.SourcePath != null)
         FileVolume += new FileInfo(args.SourcePath).Length;
 }
Пример #2
0
 void OnLeavingDirectory(object sender, FinishedOperationEventArgs args)
 {
     if (((Synchronizer) sender).CurrentLevel == 0) {
         totalWatch.Stop();
         TotalTime = totalWatch.Elapsed;
     }
 }
Пример #3
0
 protected void OnFolderSucceeded(object sender, FinishedOperationEventArgs args)
 {
     watch.Stop();
     FolderOperationTime += watch.Elapsed;
     ++SucceededFolderCount;
 }
Пример #4
0
 void OnFileSucceeded(object sender, FinishedOperationEventArgs args)
 {
     ++SucceededFileCount;
     FileOperationTime += watch.Elapsed;
 }
Пример #5
0
 void OnSkippingDirectory(object sender, FinishedOperationEventArgs args)
 {
     Console.WriteLine("Skipping directory \"{0}\".", args.SourcePath);
 }
Пример #6
0
 void OnLeavingDirectory(object sender, FinishedOperationEventArgs args)
 {
     var synchronizer = (Synchronizer) sender;
     if (synchronizer.CurrentLevel == 0) {
         Console.WriteLine("{0} {1} in {2}.", Message, AllSucceeded ? "succeeded" :
                           "failed", Formatter.FormatTime(monitor.TotalTime));
         PrintStatistics();
         Console.WriteLine();
     }
 }