Exemplo n.º 1
0
 void OnFileSucceeded(object sender, FinishedOperationEventArgs args)
 {
     watch.Stop();
     FileOperationTime += watch.Elapsed;
     ++SucceededFileCount;
     if (args.SourcePath != null)
         FileVolume += new FileInfo(args.SourcePath).Length;
 }
Exemplo n.º 2
0
 void OnLeavingDirectory(object sender, FinishedOperationEventArgs args)
 {
     if (((Synchronizer) sender).CurrentLevel == 0) {
         totalWatch.Stop();
         TotalTime = totalWatch.Elapsed;
     }
 }
Exemplo n.º 3
0
 protected void OnFolderSucceeded(object sender, FinishedOperationEventArgs args)
 {
     watch.Stop();
     FolderOperationTime += watch.Elapsed;
     ++SucceededFolderCount;
 }
Exemplo n.º 4
0
 void OnFileSucceeded(object sender, FinishedOperationEventArgs args)
 {
     ++SucceededFileCount;
     FileOperationTime += watch.Elapsed;
 }
Exemplo n.º 5
0
 void OnSkippingDirectory(object sender, FinishedOperationEventArgs args)
 {
     Console.WriteLine("Skipping directory \"{0}\".", args.SourcePath);
 }
Exemplo n.º 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();
     }
 }