Пример #1
0
        private static string GetDisplay(RequestItemStateChange h)
        {
            var user = Database.GetUser(h.UserID);

            return(string.Format("{0}: {1} => {2} by {3}",
                                 h.Date, h.Previous, h.Current, (user != null) ? user.Name : "Unknown"));
        }
Пример #2
0
 public static RequestItemStateChange Duplicate(this RequestItemStateChange change)
 {
     return(new RequestItemStateChange
     {
         Current = change.Current,
         Date = change.Date,
         Notes = change.Notes.Duplicate(),
         Previous = change.Previous,
         UserID = change.UserID.Duplicate(),
     });
 }