public List <CadFigure> StartEdit(List <CadFigure> targetList) { mSnapShotList = new CadOpeFigureSnapShotList(); mSnapShotList.StoreBefore(targetList); foreach (CadFigure fig in targetList) { if (fig != null) { fig.StartEdit(); } } return(targetList); }
public void EndEdit(List <CadFigure> targetList) { foreach (CadFigure fig in targetList) { if (fig != null) { fig.EndEdit(); } } CadOpeList root = new CadOpeList(); CadOpeList rmOpeList = RemoveInvalidFigure(); root.Add(rmOpeList); mSnapShotList.StoreAfter(DB); root.Add(mSnapShotList); HistoryMan.foward(root); mSnapShotList = null; }
public void AbendEdit() { mSnapShotList = null; }