private void OnCompleted(CopyCompletedType type, Exception exception = null) { var handler = Completed; if (handler != null) { handler(this, new FileCopyEventArgs(type, exception)); } }
/// <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; }
/// <summary> /// Constructor /// </summary> public EndEventArgs(CopyCompletedType type, Exception exception) { Type = type; Exception = exception; }