コード例 #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 };
 }