public UndoRedoAction PrepareForPolylineCornerRemoval(object affectedEdge, Site site)
        {
            SiteRemoveUndoAction action = new SiteRemoveUndoAction(EditedEdge);

            action.RemovedSite     = site;
            action.AffectedObjects = new Set <object>();
            action.AffectedObjects.Insert(affectedEdge);
            return(InsertToListAndFixTheBox(action));
        }
        public UndoRedoAction PrepareForPolylineCornerRemoval(IViewerObject affectedEdge, Site site)
        {
            var action = new SiteRemoveUndoAction(EditedEdge)
            {
                RemovedSite = site,
            };

            action.AddAffectedObject(affectedEdge);
            return(InsertToListAndSetTheBoxBefore(action));
        }
 public UndoRedoAction PrepareForPolylineCornerRemoval(IViewerObject affectedEdge, Site site) {
     var action = new SiteRemoveUndoAction(EditedEdge) {
         RemovedSite = site,
     };
     action.AddAffectedObject(affectedEdge);
     return InsertToListAndSetTheBoxBefore(action);
 }