Пример #1
0
 public EventsController(IEventServices eventService, IOrderServices orderService, UserManager <EvUser> userManager)
 {
     this.eventService = eventService;
     this.orderService = orderService;
     this._userManager = userManager;
 }
Пример #2
0
 public EventController(IEventServices eventServices)
 {
     this.eventServices = eventServices;
 }
        public ModifyEventViewModel(Event eventToModify, ObservableCollection <Event> eventList, ObservableCollection <Person> peopleList, IEventServices eventProxy, IPersonServices personProxy)
        {
            ModifyEventCommand       = new RelayCommand(ModifyEventExecute, ModifyEventCanExecute);
            AddPraticipantCommand    = new RelayCommand(AddPraticipantExecute, AddPraticipantCanExecute);
            RemovePraticipantCommand = new RelayCommand(RemovePraticipantExecute, RemovePraticipantCanExecute);
            EventList  = eventList;
            PeopleList = peopleList;

            EventProxy  = eventProxy;
            PersonProxy = personProxy;

            EventToModify               = eventToModify;
            PersonToParticipate         = new Person();
            PersonToRevokeParticipation = new Person();
            AvailablePeople             = new ObservableCollection <Person>(PersonProxy.GetAllPeople().Where(p => p.IsAvailableForEvent(EventToModify.ScheduledDateTimeBeging, EventToModify.ScheduledDateTimeEnd)));
            Participants = new ObservableCollection <Person>(EventToModify.Participants);
        }
Пример #4
0
 public BusinessController(IBusinessServices businessServices, AppDbContext context,
                           ILogger <BusinessController> logger, IAddressServices addressServices, IEventServices eventServices,
                           IEventTypeServices eventTypeServices)
 {
     _eventServices     = eventServices;
     _businessServices  = businessServices;
     _context           = context;
     _logger            = logger;
     _addressServices   = addressServices;
     _eventTypeServices = eventTypeServices;
 }
 public AdminController(IMemberServices services, IDepartmentService departmentService, IWorkerServices worker, IMemberServices member, ISermonServices sermon, ApplicationDbContext applicationDb, IEventServices eventServices, ISermonCategoryServ sermonCategory)
 {
     _memberServices = services;
     _dtservice      = departmentService;
     _event          = eventServices;
     _sermonServices = sermon;
     _workServ       = worker;
     _context        = applicationDb;
     _sermonCategory = sermonCategory;
 }
        public AddEventViewModel(ObservableCollection <Event> eventList, ObservableCollection <Person> peopleList, IEventServices eventProxy, IPersonServices personProxy)
        {
            AddEventCommand          = new RelayCommand(AddEventExecute, AddEventCanExecute);
            AddPraticipantCommand    = new RelayCommand(AddPraticipantExecute, AddPraticipantCanExecute);
            RemovePraticipantCommand = new RelayCommand(RemovePraticipantExecute, RemovePraticipantCanExecute);
            EventList  = eventList;
            PeopleList = peopleList;

            EventToAdd                  = new Event();
            PersonToParticipate         = new Person();
            PersonToRevokeParticipation = new Person();
            AvailablePeople             = new ObservableCollection <Person>();
            Participants                = new ObservableCollection <Person>();

            EventProxy  = eventProxy;
            PersonProxy = personProxy;
        }
Пример #7
0
 public EventServicesTests() {
     Context = new PlannerContext((new DbContextOptionsBuilder()).UseMySql(DbConnection).Options);
     Services = new EventServices(Context, new Mock<ICategoryServices>().Object);
 }
Пример #8
0
 public EventController(IUserService userService, IEventServices eventServices)
 {
     _eventServices = eventServices;
     _userService   = userService;
 }
Пример #9
0
 public EventsController()
 {
     this.eventServices = new EventServices();
 }
Пример #10
0
 public EventController(IEventServices clientServices, IMapper mapper)
 {
     _eventServices = clientServices;
     _mapper        = mapper;
 }
 public EventController(IEventServices @event)
 {
     context = new ApplicationDbContext();
     _event  = @event;
 }
Пример #12
0
        public DeleteEventConfirmationViewModel(Event eventToBeDeleted, ObservableCollection <Event> eventList, ObservableCollection <Person> peopleList, IEventServices eventProxy)
        {
            EventToBeDeleted   = eventToBeDeleted;
            EventList          = eventList;
            PeopleList         = peopleList;
            Participants       = new ObservableCollection <Person>(EventToBeDeleted.Participants);
            DeleteEventCommand = new RelayCommand(DeleteEventExecute, DeleteEventCanExecute);

            EventProxy = eventProxy;
        }
Пример #13
0
 public TopEventController(PlannerContext plannerContext,
                           IEventServices eventServices)
 {
     Context       = plannerContext;
     EventServices = eventServices;
 }
Пример #14
0
 public EventsController(IEventServices services)
 {
     _services = services;
 }
Пример #15
0
 public ItemRegistrationsController(PortalDbContext db, IEventServices svc, IShoppingCartService cartSvc, ApplicationUserManager userManager)
 {
     _db = db;
     _eventSvc = svc;
     _cartSvc = cartSvc;
     UserManager = userManager;
     //}
 }
Пример #16
0
 public HomeController()
 {
     this.deptServices  = new DepartmentServices();
     this.eventServices = new EventServices();
     this.newsServices  = new NewsServices();
 }
Пример #17
0
 public EventController(IEventServices eventServices)
 {
     _eventService = eventServices;
 }
Пример #18
0
 public EventsController(IEventServices IEvent)
 {
     Event = IEvent;
 }
Пример #19
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;
 }
Пример #20
0
 public AgendaController(IEventServices eventServices, IUserService userService, ILiaison liaison)
 {
     EventServices = eventServices ?? throw new ArgumentNullException(nameof(eventServices));
     UserService   = userService ?? throw new ArgumentNullException(nameof(userService));
     Liaison       = liaison ?? throw new ArgumentNullException(nameof(liaison));
 }
Пример #21
0
 //Contructor
 public PdfServices(ITimeServices timeServices, IRunnerServices runnerServices, IEventServices eventServices)
 {
     this.TimeServices   = timeServices;
     this.RunnerServices = runnerServices;
     this.EventServices  = eventServices;
 }
Пример #22
0
 public EventController(IEventServices eventService, UserManager <User> userManager)
 {
     _eventService = eventService;
     _userManager  = userManager;
 }
Пример #23
0
 public EventsController(IEventServices svc)
 {
     _svc = svc;
 }
 public AuditTrailController(IEventServices services)
 {
     _services = services;
 }
 public CedLogAttribute(UnitOfWork unitOfWork)
 {
     _unitOfWork      = unitOfWork;
     _editionServices = new EditionServices(_unitOfWork);
     _eventServices   = new EventServices(_unitOfWork);
 }
Пример #26
0
 public MainPageViewModel(INavigationService navigationService, ISQLite dbservices, IEventServices eventServices, IPdfServices pdfServices)
     : base(navigationService)
 {
     Title = "Main Menu";
     NavigateToRunnerPageCommand = new DelegateCommand(NavigateToRunnerPage);
     DeleteAllCommand            = new DelegateCommand(DeleteAllMethod);
     NavigateToEventsPageCommand = new DelegateCommand(NavigateToEventsPage);
     this.navigationService      = navigationService;
     this.dbservices             = dbservices;
     Connection = dbservices.GetConnection();
     dbservices.CreateTables(Connection);
     this.EventServices = eventServices;
     GetNotRanEvents();
 }
 public EventsController(IEventServices eventServices, 
     IUserServices userServices)
 {
     this.eventServices = eventServices;
     this.userServices = userServices;
 }
Пример #28
0
 public EventController(IEventServices eventServices)
 {
     _eventService = eventServices;
 }