コード例 #1
0
        /// <summary>
        /// Implements <see cref="IInvalidateDisplay.InvalidateRequired(bool)"/>
        /// Call to automatically invalidate the shape during events.
        /// Invalidates during the original event sequence as well as undo and redo.
        /// </summary>
        /// <param name="refreshBitmap">Value to forward to the Invalidate method's refreshBitmap property during event playback</param>
        protected void InvalidateRequired(bool refreshBitmap)
        {
            long?newValue = ORMShapeDomainModel.GetNewUpdateCounterValue(this, refreshBitmap);

            if (newValue.HasValue)
            {
                UpdateCounter = newValue.Value;
            }
        }
コード例 #2
0
 private long GetUpdateCounterValue()
 {
     return(ORMShapeDomainModel.GetCurrentUpdateCounterValue(this));
 }