public void Undo() { if (mState == null || mPipe == null) { return; } mState.delPipe(mPath); mState.DelPipeFromData(mPipe); }
public void Redo() { if (mState == null) { return; } if (mPath == null) { return; } mState.delPipe(mPath); Pipe pipe = mPath.ToolTip as Pipe; pipe.pipeInfo.ID = mCurId; mState.DelPipeFromData(pipe); }