public void foward(CadOpe ope) { mUndoStack.Push(ope); DisposeStackItems(mRedoStack); mRedoStack.Clear(); }
public void redo() { if (mRedoStack.Count == 0) { return; } CadOpe ope = mRedoStack.Pop(); if (ope == null) { return; } ope.Redo(mDB); mUndoStack.Push(ope); }
public void Add(CadOpe ope) { OpeList.Add(ope); }