示例#1
0
        public override void DeleteTreeViewObject()
        {
            SubrouteInRouteService service = new SubrouteInRouteService();

            service.DeleteSubrouteInRoute(this);
            service.RemoveRelationShips(this);
        }
示例#2
0
        private void RemoveSubrouteFromRoute(SubroutesInRoute subrouteInRoute)
        {
            //remove from database
            SubrouteInRouteService service = new SubrouteInRouteService();

            service.DeleteSubrouteInRoute(subrouteInRoute);

            //remove from overall structure
            service.RemoveRelationShips(subrouteInRoute);

            ArrangeSequences();
        }