Пример #1
0
 public static AssignmentErrorEventArgs New(AssignmentErrorType errorType, Exception error = null)
 {
     return(new AssignmentErrorEventArgs()
     {
         ErrorType = errorType, Error = error
     });
 }
Пример #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("");
            }
        }
Пример #3
0
 public static AssignmentErrorEventArgs New(AssignmentErrorType errorType, Exception error = null)
 {
     return new AssignmentErrorEventArgs() { ErrorType = errorType, Error = error };
 }