Пример #1
0
        public override void DeleteTreeViewObject()
        {
            SubrouteService service = new SubrouteService();

            service.DeleteSubroute(this);
            service.RemoveRelationShips(Procescell, this);
        }
Пример #2
0
        public void GetSourceDestinationLists()
        {
            SubrouteService service = new SubrouteService();

            SourceBins      = new ObservableCollection <BinsInSubRoute>(service.GetAllSourcebins(Subroute));
            DestinationBins = new ObservableCollection <BinsInSubRoute>(service.GetAllDestinationBins(Subroute));
        }
Пример #3
0
        //refreshes the entire screen
        public void ArrangeSequences()
        {
            //arrange subroutes not in route
            SubrouteService subService = new SubrouteService();

            SubroutesNotinRoute = new ObservableCollection <Subroute>(subService.GetSubroutesNotInRoute(Route));

            //generate sequences here (sequence service + getlist sequences)
            SequenceService seqService = new SequenceService();

            Sequences = new ObservableCollection <Sequence>(seqService.GetSequences(Route));
        }
 private void CreateNewSubroute()
 {
     if (string.IsNullOrEmpty(SubrouteName))
     {
         _View.ShowMessage("Please choose a name.");
     }
     else
     {
         SubrouteService service  = new SubrouteService();
         Subroute        subroute = service.GenerateNewSubroute(Procescell, SubrouteName);
         service.CreateSubroute(subroute);
         service.AddSubrouteToCell(Procescell, subroute);
     }
 }