protected void InvokeOnProgress(string fileOrFolder, string message)
 {
     if (OnProgress != null)
     {
         FileActionEventArgs fileActionEventArgs = new FileActionEventArgs { FileOrFolder = fileOrFolder, Message = message };
         OnProgress(this, fileActionEventArgs);
     }
 }
        protected void InvokeErrorOccurred(string fileOrFolder, string message, out bool cancel)
        {
            cancel = false;

            if (ErrorOccurred != null)
            {
                FileActionEventArgs fileActionEventArgs = new FileActionEventArgs { FileOrFolder = fileOrFolder, Message = message };
                ErrorOccurred(this, fileActionEventArgs);

                cancel = fileActionEventArgs.CancelProcess;
            }
        }