コード例 #1
0
        /// <summary>
        /// Creates a simple entry only containing one message in each category with the given type and names and
        /// extra info
        /// </summary>
        public static AuditLogEntry CreateSingleMessageEntry(SrmDocument document,
                                                             MessageInfo info, string extraInfo = null)
        {
            var result = new AuditLogEntry(document, DateTime.Now, string.Empty, true, extraInfo)
            {
                UndoRedo = info.ToMessage(LogLevel.undo_redo),
                Summary  = info.ToMessage(LogLevel.summary),
                AllInfo  = new LogMessage[0]//new[] { info.ToMessage(LogLevel.all_info) }
            };

            return(result);
        }
コード例 #2
0
 public AuditLogEntry ChangeUndoRedo(MessageInfo undoRedo)
 {
     return(ChangeProp(ImClone(this), im =>
     {
         im.UndoRedo = undoRedo.ToMessage(LogLevel.undo_redo);
         // Since the all info list might contain the undo redo message,
         // changing it requires updating the all info
         if (InsertUndoRedoIntoAllInfo)
         {
             im.AllInfo = im._allInfoNoUndoRedo.ToList();
         }
     }));
 }
コード例 #3
0
 public AuditLogEntry ChangeSummary(MessageInfo summary)
 {
     return(ChangeSummary(summary.ToMessage(LogLevel.summary)));
 }