示例#1
0
 public StatsService(ISQLite dbservices, IEventServices eventServices, ITimeServices timeServices)
 {
     this.dbservices = dbservices;
     Connection      = dbservices.GetConnection();
     EventServices   = eventServices;
     TimeServices    = timeServices;
 }
        internal AuftragKomponenteBusinessLogic(SendungsanfrageRepository sa_REPO, ITimeServices timeServices)
        {
            Check.Argument(sa_REPO != null, "sa_REPO != null");
            Check.Argument(timeServices != null, "timeServices != null");

            this.sa_REPO = sa_REPO;
            this.timeServices = timeServices;
        }
示例#3
0
 //constructor
 public EventDetailsPageViewModel(ITimeServices timeServices, IEventServices eventServices, IPdfServices pdfServices)
 {
     this.TimeServices  = timeServices;
     this.EventServices = eventServices;
     this.PdfServices   = pdfServices;
     CreatePdfCommand   = new DelegateCommand(CreatePdfMethod);
     IsBusy             = true;
 }
示例#4
0
 public AddTimesToEventPageViewModel(INavigationService NavigationService, ITimeServices TimeServices, IRunnerServices runnerServices)
 {
     this.NavigationService = NavigationService;
     this.TimeServices      = TimeServices;
     this.RunnerServices    = runnerServices;
     AddDistanceCommand     = new DelegateCommand(AddDistanceMethod, CanExecuteAddDistance).ObservesProperty(() => ListofRaces.DistanceName);
     RunEventCommand        = new DelegateCommand(RunEventMethod, CanExecuteRunEvent).ObservesProperty(() => ShowList.Count);
     RemoveDistanceCommand  = new DelegateCommand <ListofRaces>(RemoveDistanceMethod);
     SaveEventCommand       = new DelegateCommand(SaveEventMethod, CanExecuteSaveEvent).ObservesProperty(() => ShowList.Count);
 }
        public AuftragKomponenteFacade(IPersistenceServices persistenceService, ITransactionServices transactionService, ITimeServices timeServices)
        {
            Check.Argument(persistenceService != null, "persistenceService != null");
            Check.Argument(transactionService != null, "transactionService != null");
            Check.Argument(timeServices != null, "timeServices != null");

            this.sa_REPO = new SendungsanfrageRepository(persistenceService);
            this.aufK_BL = new AuftragKomponenteBusinessLogic(this.sa_REPO, timeServices);
            this.transactionService = transactionService;
            this.perdiodicGültigkeitsprüfungTaskCancellationTokenSource = new CancellationTokenSource();
        }
示例#6
0
 public RunEventPageViewModel(INavigationService NavigationService, ITimeServices timeServices, IEventServices eventservices)
 {
     this.NavigationService = NavigationService;
     this.TimeServices      = timeServices;
     this.EventServices     = eventservices;
     StartCommand           = new DelegateCommand(StartMethod, CanExecuteStart).ObservesProperty(() => IsRunning);
     FinalizedCommnad       = new DelegateCommand(FinalizedMethod, CanExecuteStop).
                              ObservesProperty(() => IsRunning).ObservesProperty(() => Total);
     SplitTimeCommand = new DelegateCommand <object>(SplitTimeMethod, CanExecuteSplitTime).
                        ObservesProperty(() => Total).ObservesProperty(() => IsRunning);
     NavigateToEventDetailsCommand = new DelegateCommand(NavigateToEventDetailMethod);
     IsBusy = true;
 }
        public TransportplanungKomponenteFacade(IPersistenceServices persistenceService, ITransactionServices transactionService, IAuftragServicesFürTransportplanung auftragServices, IUnterbeauftragungServicesFürTransportplanung unterbeauftragungServices, ITransportnetzServicesFürTransportplanung transportnetzServices, ITimeServices timeServices)
        {
            Check.Argument(persistenceService != null, "persistenceService != null");
            Check.Argument(transactionService != null, "transactionService != null");
            Check.Argument(auftragServices != null, "auftragServices != null");
            Check.Argument(unterbeauftragungServices != null, "unterbeauftragungsServices != null");
            Check.Argument(transportnetzServices != null, "transportnetzServices != null");

            this.transactionService = transactionService;
            this.auftragServices = auftragServices;
            this.tp_REPO = new TransportplanRepository(persistenceService);
            this.tpK_BL = new TransportplanungKomponenteBusinessLogic(tp_REPO, transactionService, auftragServices, unterbeauftragungServices, transportnetzServices, timeServices);
        }
        public TransportplanungKomponenteBusinessLogic(TransportplanRepository tp_REPO, ITransactionServices transactionService, IAuftragServicesFürTransportplanung auftragServices, IUnterbeauftragungServicesFürTransportplanung unterbeauftragungServices, ITransportnetzServicesFürTransportplanung transportnetzServices, ITimeServices timeServices)
        {
            Check.Argument(tp_REPO != null, "tp_REPO != null");
            Check.Argument(transactionService != null, "transactionService != null");
            Check.Argument(auftragServices != null, "auftragServices != null");
            Check.Argument(unterbeauftragungServices != null, "unterbeauftragungsServices != null");
            Check.Argument(transportnetzServices != null, "transportnetzServices != null");
            Check.Argument(timeServices != null, "timeServices != null");

            this.tp_REPO = tp_REPO;
            this.transactionService = transactionService;
            this.auftragServices = auftragServices;
            this.unterbeauftragungServices = unterbeauftragungServices;
            this.transportnetzServices = transportnetzServices;
            this.timeServices = timeServices;
            this.planungsQueue = new BackgroundQueue();
        }
示例#9
0
 //Contructor
 public PdfServices(ITimeServices timeServices, IRunnerServices runnerServices, IEventServices eventServices)
 {
     this.TimeServices   = timeServices;
     this.RunnerServices = runnerServices;
     this.EventServices  = eventServices;
 }
示例#10
0
        public AddRunnerToEventViewModel(INavigationService NavigationService, IEventServices eventServices, IRunnerServices runnerServices, ITimeServices timeServices)

        {
            this.NavigationService = NavigationService;
            this.EventServices     = eventServices;
            this.RunnerServices    = runnerServices;
            this.TimeServices      = timeServices;
            SaveEventCommand       = new DelegateCommand(SaveEventMethod);
            RemoveRunnerCommand    = new DelegateCommand <Runner>(RemoveRunnerMethod);
            IsBusy = true;
        }
示例#11
0
 public RunnerServices(ISQLite dbservices, ITimeServices timeServices)
 {
     this.dbservices   = dbservices;
     this.Connection   = dbservices.GetConnection();
     this.TimeServices = timeServices;
 }
示例#12
0
 public IncreaseTimeCommandStrategy(ITimeServices timeServices)
 {
     _timeServices = timeServices;
 }
示例#13
0
 public DataHub(ITimeServices timeServices, IMessageGenerator messageGenerator)
 {
     this.timeServices     = timeServices;
     this.messageGenerator = messageGenerator;
 }