Ejemplo n.º 1
0
 private void PushUndoEntry(PropertyId fakePropId, FlagProperties flagProperties)
 {
     if (this.propertyUndoStackTop == this.propertyUndoStack.Length)
     {
         if (this.propertyUndoStack.Length >= 8960)
         {
             throw new TextConvertersException("property undo stack is too large");
         }
         int num = Math.Min(this.propertyUndoStack.Length * 2, 8960);
         PropertyState.PropertyUndoEntry[] destinationArray = new PropertyState.PropertyUndoEntry[num];
         Array.Copy(this.propertyUndoStack, 0, destinationArray, 0, this.propertyUndoStackTop);
         this.propertyUndoStack = destinationArray;
     }
     this.propertyUndoStack[this.propertyUndoStackTop++].Set(fakePropId, flagProperties);
 }
Ejemplo n.º 2
0
 private void PushUndoEntry(PropertyBitMask propertyMask)
 {
     if (this.propertyUndoStackTop + 1 >= this.propertyUndoStack.Length)
     {
         if (this.propertyUndoStackTop + 2 >= 8960)
         {
             throw new TextConvertersException("property undo stack is too large");
         }
         int num = Math.Min(this.propertyUndoStack.Length * 2, 8960);
         PropertyState.PropertyUndoEntry[] destinationArray = new PropertyState.PropertyUndoEntry[num];
         Array.Copy(this.propertyUndoStack, 0, destinationArray, 0, this.propertyUndoStackTop);
         this.propertyUndoStack = destinationArray;
     }
     this.propertyUndoStack[this.propertyUndoStackTop++].Set((PropertyId)75, propertyMask.Bits1);
     this.propertyUndoStack[this.propertyUndoStackTop++].Set((PropertyId)76, propertyMask.Bits2);
 }