public static AssignmentErrorEventArgs New(AssignmentErrorType errorType, Exception error = null) { return(new AssignmentErrorEventArgs() { ErrorType = errorType, Error = error }); }
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 }; }