Пример #1
0
 private void OnCompleted(CopyCompletedType type, Exception exception = null)
 {
     var handler = Completed;
     if (handler != null)
     {
         handler(this, new FileCopyEventArgs(type, exception));
     }
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">type of the copy completed type enum</param>
 /// <param name="exception">exception if any</param>
 public FileCopyEventArgs(CopyCompletedType type, Exception exception)
 {
     Type = type;
     Exception = exception;
 }
Пример #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public EndEventArgs(CopyCompletedType type, Exception exception)
 {
     Type      = type;
     Exception = exception;
 }