コード例 #1
0
ファイル: Ticket.cs プロジェクト: xafdelta/xafdelta
        /// <summary>
        /// Creates ticket for log record.
        /// </summary>
        /// <param name="objectSpace">The object space.</param>
        /// <param name="logRecord">The log record.</param>
        /// <param name="package">The package.</param>
        /// <returns>New ticket</returns>
        public static Ticket CreateForLogRecord(IObjectSpace objectSpace,
                                                PackageLogRecord logRecord, Package package)
        {
            var result = objectSpace.CreateObject <Ticket>();

            result.PackageEventType = logRecord.PackageEventType;
            result.Package          = package;
            result.Comments         = logRecord.Comments;
            return(result);
        }
コード例 #2
0
ファイル: Ticket.cs プロジェクト: xafdelta/xafdelta
 /// <summary>
 /// Creates ticket for log record.
 /// </summary>
 /// <param name="objectSpace">The object space.</param>
 /// <param name="logRecord">The log record.</param>
 /// <param name="package">The package.</param>
 /// <returns>New ticket</returns>
 public static Ticket CreateForLogRecord(IObjectSpace objectSpace, 
     PackageLogRecord logRecord, Package package)
 {
     var result = objectSpace.CreateObject<Ticket>();
     result.PackageEventType = logRecord.PackageEventType;
     result.Package = package;
     result.Comments = logRecord.Comments;
     return result;
 }