string CreateErrorText(AssignmentErrorEventArgs e) { string errorMsg = e.Error != null ? e.Error.Message : ""; string msg = string.Format("[{0}]\n{1}", e.ErrorType.Message(), errorMsg); return(msg + "\n\nChiama il professore!"); }