void HandleSteps(Stack <UndoStep> stack1, Stack <UndoStep> stack2) { UndoStep step = stack1.Pop(); stack2.Push(UndoStep.CreateStep(gridTree, rowDefitions, colDefitions, additionalProperties)); this.additionalProperties = step.AdditionalProperties; this.rowDefitions = step.RowDefinitions; this.colDefitions = step.ColumnDefinitions; this.gridTree = step.Tree; RebuildGrid(); }
void UpdateUndoRedoState() { this.undoStack.Push(UndoStep.CreateStep(gridTree, rowDefitions, colDefitions, additionalProperties)); this.redoStack.Clear(); }