Beispiel #1
0
 public static AssignmentErrorEventArgs New(AssignmentErrorType errorType, Exception error = null)
 {
     return(new AssignmentErrorEventArgs()
     {
         ErrorType = errorType, Error = error
     });
 }
Beispiel #2
0
        public static string Message(this AssignmentErrorType errorType)
        {
            switch (errorType)
            {
            case AssignmentErrorType.UnknowError: return("Errore sconosciuto");

            case AssignmentErrorType.ProjectTargetNoFound: return("Progetto non trovato");

            case AssignmentErrorType.CopyError: return("Errore di copia");

            case AssignmentErrorType.ClearError: return("Errore pulitura cartelle");

            default: return("");
            }
        }
 public static AssignmentErrorEventArgs New(AssignmentErrorType errorType, Exception error = null)
 {
     return new AssignmentErrorEventArgs() { ErrorType = errorType, Error = error };
 }