예제 #1
0
 /// <summary>
 /// Converts the gazette operation into a entity history entry.
 /// </summary>
 /// <returns>Coresponding history entry.</returns>
 public override HistoryEntryBase ConvertToHistory()
 {
     var historyArea = new HistoryAreaChange();
     if ( this.oldareaSpecified )
     {
         historyArea.oldarea = this.oldarea;
         historyArea.oldareaSpecified = true;
     }
     if ( this.newareaSpecified )
     {
         historyArea.newarea = this.newarea;
         historyArea.newareaSpecified = true;
     }
     if ( this.typeSpecified )
     {
         historyArea.type = this.type;
         historyArea.typeSpecified = true;
     }
     return historyArea;
 }
예제 #2
0
        /// <summary>
        /// Converts the gazette operation into a entity history entry.
        /// </summary>
        /// <returns>Corresponding history entry.</returns>
        public override HistoryEntryBase ConvertToHistory()
        {
            var historyArea = new HistoryAreaChange();

            if (this.oldareaSpecified)
            {
                historyArea.oldarea          = this.oldarea;
                historyArea.oldareaSpecified = true;
            }
            if (this.newareaSpecified)
            {
                historyArea.newarea          = this.newarea;
                historyArea.newareaSpecified = true;
            }
            if (this.typeSpecified)
            {
                historyArea.type          = this.type;
                historyArea.typeSpecified = true;
            }
            return(historyArea);
        }