public override void redo() { // remove the specified rulers from the list of the layer, // but do not delete it, also memorise its last position mRulerIndex.Clear(); foreach (Layer.LayerItem obj in mRulers) { mRulerIndex.Add(mRulerLayer.removeRulerItem(obj as LayerRuler.RulerItem)); } }
public override void undo() { // remove the specified RulerItem from the list of the layer, // but do not delete it, also memorise its last position mRulerItemIndex = mRulerLayer.removeRulerItem(mRulerItem); }