Exemple #1
0
        public αbetik()
        {
            InitializeComponent();
            _iManagerPanelInformationService = InstanceFactory.GetInstance <IManagerPanelInformationService>();

            _informationService = InstanceFactory.GetInstance <IInformationService>();
        }
Exemple #2
0
        public FindController(
            IPaginatedMetaService paginatedMetaService,
            WebDbContext Context,

            IAddresServices Address,
            WebEventoo_DomainClasses.Services.IExhibitionServices Cermoney,
            IColorService Color,
            ICommentService Comment,
            IEductionservices Eduction,
            IEventServices Event,
            WebExhibitionoo_DomainClasses.Services.IExhibitionServices Exhibition,
            IInformationService Information,
            IPlaceServices Place
            )
        {
            FAddressServices      = Address;
            FCermoneyServices     = Cermoney;
            FColorServices        = Color;
            FCommentServices      = Comment;
            FEductionServices     = Eduction;
            FEventServices        = Event;
            FExhibitionServices   = Exhibition;
            FInformtionSErvices   = Information;
            FPlacesServices       = Place;
            context               = Context;
            _paginatedMetaService = paginatedMetaService;
        }
 public InformationController(IInformationService informationService, IBannerService bannerService, ICommonService commonService)
 {
     _informationService = informationService;
     _bannerService      = bannerService;
     _commonService      = commonService;
     _siteSettings       = _commonService.GetSiteSettings();
 }
Exemple #4
0
 public HomeController(IQuotationService quotationService, IInformationService informationService, IBookCategoryService bookCategoryService, IBookService bookService)
 {
     this._quotationService    = quotationService;
     this._informationService  = informationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
 }
        public InformationViewModel(
            IBaseService baseService,
            IInformationService informationService,
            ISettingsService settingsService,
            IEventAggregator eventAggregator
            ) : base(baseService)
        {
            TabName = "Information";

            _baseService        = baseService;
            _informationService = informationService;
            _settingsService    = settingsService;
            _eventAggregator    = eventAggregator;

            SettingsModel = _settingsService.InformationSettingsModel;

            // UI DelegateCommands
            EditButtonCommand            = new DelegateCommand(ExecuteEditButtonCommand);
            CancelEditingButtonCommand   = new DelegateCommand(ExecuteCancelEditingButtonCommand);
            SaveEditedButtonCommand      = new DelegateCommand(ExecuteSaveEditedButtonCommand);
            AddFiefCommand               = new DelegateCommand(ExecuteAddFiefCommand);
            RemoveFiefCommand            = new DelegateCommand(ExecuteRemoveFiefCommand);
            UpdateInformationTextCommand = new DelegateCommand(ExecuteUpdateInformationTextCommand);

            _eventAggregator.GetEvent <NewFiefLoadedEvent>().Subscribe(ExecuteNewFiefLoadedEvent);
        }
 public ConnexionMenuViewModel(IEventAggregator eventAggregator, IConnexion connexion, IInformationService service)
 {
     _eventAggregator = eventAggregator;
     _connexion       = connexion;
     _service         = service;
     Connexion        = new DelegateCommand(Connect);
 }
Exemple #7
0
 public override void Close()
 {
     if (!bProxyOwner)
     {
         return;
     }
     if (proxy != null)
     {
         try
         {
             this.proxy.Dispose();
         }
         catch (TimeoutException)
         {
             this.proxy.Abort();
         }
         catch (CommunicationException)
         {
             this.proxy.Abort();
         }
     }
     this.proxy   = null;
     this.service = null;
     this.open    = false;
 }
        public HomeController(
            WebDbContext Context,
            IAddresServices Address,
            WebEventoo_DomainClasses.Services.IExhibitionServices Cermoney,
            IColorService Color,
            ICommentService Comment,
            IEductionservices Eduction,
            IEventServices Event,
            WebExhibitionoo_DomainClasses.Services.IExhibitionServices Exhibition,
            IInformationService Information,
            IHostingEnvironment hostingEnvironment,
            IReportServices ReportServices,
            IPlaceServices Place)
        {
            FAddressServices    = Address;
            FCermoneyServices   = Cermoney;
            FColorServices      = Color;
            FCommentServices    = Comment;
            FEductionServices   = Eduction;
            FEventServices      = Event;
            FExhibitionServices = Exhibition;
            FInformtionSErvices = Information;
            FPlacesServices     = Place;
            FreportServices     = ReportServices;
            context             = Context;

            this._hostingEnvironment = hostingEnvironment;
        }
Exemple #9
0
        public DeleteController(
            WebDbContext Context,

            IAddresServices Address,
            WebEventoo_DomainClasses.Services.IExhibitionServices Cermoney,
            IColorService Color,
            ICommentService Comment,
            IEductionservices Eduction,
            IEventServices Event,
            INotPublishedServices notpublish,
            WebExhibitionoo_DomainClasses.Services.IExhibitionServices Exhibition,
            IInformationService Information,
            IPlaceServices Place
            )
        {
            context             = Context;
            FAddressServices    = Address;
            FCermoneyServices   = Cermoney;
            FColorServices      = Color;
            FCommentServices    = Comment;
            FEductionServices   = Eduction;
            FEventServices      = Event;
            FExhibitionServices = Exhibition;
            FInformtionSErvices = Information;
            FPlacesServices     = Place;
            FnotPublished       = notpublish;
        }
Exemple #10
0
        private void CreateProxy()
        {
            if (endpointName.Length != 0)
            {
                if (remoteAddress != null)
                {
                    if (credentials != null)
                    {
                        this.proxy = new InfoServiceProxy(endpointName, remoteAddress, credentials);
                    }
                    else
                    {
                        this.proxy = new InfoServiceProxy(endpointName, remoteAddress);
                    }
                }
                else
                {
                    if (credentials != null)
                    {
                        this.proxy = new InfoServiceProxy(endpointName, credentials);
                    }
                    else
                    {
                        this.proxy = new InfoServiceProxy(endpointName);
                    }
                }

                this.service = this.proxy;
            }
        }
        public InformationServiceConnection(IInformationService service)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            this.service = service;
            bProxyOwner = false;
        }
Exemple #12
0
 public BaseServiceTests()
 {
     _onlineMatchList  = new List <MatchState>();
     _onlinePlayerList = new List <PlayerProfile>();
     _dataController   = new DataController();
     _gameController   = new GameController(_dataController, _onlineMatchList);
     _infoController   = new InformationController(_dataController, _onlinePlayerList);
     _service          = new BaseService(_gameController, _infoController);
 }
 public InformationServiceConnection(InfoServiceProxy proxy, bool takeOwnership)
 {
     this.service = proxy;
     bProxyOwner = takeOwnership;
     if (bProxyOwner)
     {
         this.proxy = proxy;
     }
 }
Exemple #14
0
 public InformationServiceConnection(InfoServiceProxy proxy, bool takeOwnership)
 {
     this.service = proxy;
     bProxyOwner  = takeOwnership;
     if (bProxyOwner)
     {
         this.proxy = proxy;
     }
 }
Exemple #15
0
 public BaseServiceTests()
 {
     _onlineMatchList = new List<MatchState>();
     _onlinePlayerList = new List<PlayerProfile>();
     _dataController = new DataController();
     _gameController = new GameController(_dataController, _onlineMatchList);
     _infoController = new InformationController(_dataController, _onlinePlayerList);
     _service = new BaseService(_gameController, _infoController);
 }
 public CreateModeMenuViewModel(IGameModeInfoService gameModeInfoService, IInformationService service, IEventAggregator eventAggregator, IConnexion connexion)
 {
     _eventAggregator = eventAggregator;
     Return           = new DelegateCommand(ReturnMainMenu);
     Create           = new DelegateCommand(CreateMode);
     _connexion       = connexion;
     GameModeInfos    = new ListCollectionView(gameModeInfoService.GetGameModeInfos());
     this.GameModeInfos.CurrentChanged += new EventHandler(SelectedGameInfoChanged);
     _service = service;
 }
Exemple #17
0
        public InformationServiceConnection(IInformationService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            this.service = service;
            bProxyOwner  = false;
        }
 public AttenteMenuViewModel(IEventAggregator eventAggregator, IInformationService serviceInfo, IConnexion connexion, IPlayersInGameService servicePlayer)
 {
     _eventAggregator         = eventAggregator;
     _connexion               = connexion;
     _servicePlayer           = servicePlayer;
     _serviceInfo             = serviceInfo;
     Players                  = new ListCollectionView(servicePlayer.GetPlayers(connexion, serviceInfo.GetCurrentGameMode().Id));
     _connexion.NewPlayer    += RefreshPlayers;
     _connexion.DeletePLayer += DeletePlayer;
     _connexion.StartGame    += Start;
 }
Exemple #19
0
 public RoomController(IReservationsRepository reservationsRepository,
                       IUsersRepository usersRepository, IReservationsViewModelRepository vmReservationsRepository,
                       IRoomsRepository roomsRepository, IInformationService infoService)
 {
     decoder = new QRCodeService();
     _reservationsRepository   = reservationsRepository;
     _usersRepository          = usersRepository;
     _vmReservationsRepository = vmReservationsRepository;
     _roomsRepository          = roomsRepository;
     _infoService = infoService;
 }
 public JoinModeMenuViewModel(ICurrentGameModeService currentGameModeService, IInformationService service, IEventAggregator eventAggregator, IConnexion connexion)
 {
     _eventAggregator = eventAggregator;
     CurrentGameModes = new ListCollectionView(currentGameModeService.GetDetails(connexion));
     CurrentGameModes.CurrentChanged += new EventHandler(SelectedGameInfoChanged);
     _gameModeService = currentGameModeService;
     Return           = new DelegateCommand(ReturnMainMenu);
     Join             = new DelegateCommand(JoinGame);
     _connexion       = connexion;
     _service         = service;
     StartTimer();
 }
Exemple #21
0
 public BookController(IInformationService informationService, IChapterDetailService chapterDetailService, IAudioBookService audioBookService, ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService        = authorService;
     this._informationService   = informationService;
     this._chapterDetailService = chapterDetailService;
     this._audioBookService     = audioBookService;
     this._bookCategoryService  = bookCategoryService;
     this._bookService          = bookService;
     this._ebookService         = ebookService;
     this._userService          = userService;
     this._typeEbookService     = typeEbookService;
 }
Exemple #22
0
        public GlobalFilterService(IInformationService infoService, WorkFlowPostgreSqlContext dbcontext, IConfiguration configuration)
        {
            _infoService   = infoService;
            _dbcontext     = dbcontext;
            _configuration = configuration;
            var val = _infoService.GetConfiguration("defaultdaterange", "dashboard");

            if (val != null)
            {
                defaultDateRange = val.Value;
            }
        }
        public List <InformationInfo> FindAll4(PagerInfo info, string fieldToSort, bool isDescending)
        {
            List <InformationInfo> result = new List <InformationInfo>();

            IInformationService  service = CreateSubClient();
            ICommunicationObject comm    = service as ICommunicationObject;

            comm.Using(client =>
            {
                result = service.FindAll4(info, fieldToSort, isDescending);
            });

            return(result);
        }
        public ExerciseViewModel(IInformationService informationService)
        {
            this.informationService = informationService;

            possibleExercises = new Func<ExerciseModel>[]
            {
                CreateAddExercise,
                CreateSubtractExercise,
                CreateMultiplyExercise,
                CreateDivideExercise
            };

            ComputeNewExercise();
        }
Exemple #25
0
 public MainViewViewModel(IGridCellService gridCell, IConnexion connexion, IInformationService informationService, IZoneService zoneService)
 {
     ButtonClic          = true;
     Scale               = 1;
     _gridCell           = gridCell;
     MousePressedCommand = new DelegateCommand <MouseButtonEventArgs>(MousePressed);
     MouseWheelCommand   = new DelegateCommand <MouseWheelEventArgs>(MouseWheel);
     MouseMoveCommand    = new DelegateCommand <MouseEventArgs>(MouseMove);
     RightDownCommand    = new DelegateCommand <MouseButtonEventArgs>(RightDown);
     RightUpCommand      = new DelegateCommand <MouseButtonEventArgs>(RightUp);
     StartPressedCommand = new DelegateCommand(StartPressed);
     _connexion          = connexion;
     _informationService = informationService;
     _zoneService        = zoneService;
     Zone = new Zone();
     _connexion.SwitchCell += SwitchCell;
     _connexion.StartGenEv += StartGen;
     _timer.Elapsed        += GetGen;
 }
        public InformationServiceTests()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(databaseName: "FileTestDb").Options;

            this.connection = new ApplicationDbContext(options);

            this.imageRepository  = new EfRepository <ImageToReview>(this.connection);
            this.reviewRepository = new EfDeletableEntityRepository <Review>(this.connection);
            this.filesRepository  = new EfRepository <FileOnFileSystem>(this.connection);

            this.environment   = new HostingEnvironment();
            this.htmlSanitizer = new HtmlSanitizer();

            this.filesService       = new FilesService(this.filesRepository, this.environment);
            this.informationService = new InformationService(this.imageRepository, this.reviewRepository, this.filesService, this.htmlSanitizer);

            this.InitializeFields();
        }
 public OpportunitiesController(IInformationService infoSvc)
 {
     _svc = infoSvc;
 }
Exemple #28
0
 public DataController(IDataService dataAPI, IInformationService informationAPI)
 {
     _dataAPI        = dataAPI;
     _informationAPI = informationAPI;
 }
 public CategoriesController(IInformationService infoSvc)
 {
     _svc = infoSvc;
 }
 public InformationController(IInformationService informationService)
 => _informationService = informationService;
Exemple #31
0
 public GrantsController(IInformationService service)
 {
     _svc = service;
 }
Exemple #32
0
 public ConstantTrialPlotController(IInformationService informationService, IDataManageService datamanageService)
 {
     _informationService = informationService;
     _datamanageService  = datamanageService;
 }
        public override void Close()
        {
            if (!bProxyOwner)
                return;
            if (proxy != null)
            {
                try
                {
                    this.proxy.Dispose();
                }
                catch (TimeoutException)
                {
                    this.proxy.Abort();
                }
                catch (CommunicationException)
                {
                    this.proxy.Abort();
                }
            }
            this.proxy = null;
            this.service = null;
            this.open = false;

        }
Exemple #34
0
 public InformationController(IInformationService informationService)
 {
     _informationService = informationService ?? throw new ArgumentNullException(nameof(informationService));
 }
Exemple #35
0
 public BaseService()
 {
     _gameController = Program.gameController;
     _infoController = Program.infoController;
 }
Exemple #36
0
 public BaseService(IGameService gameController, IInformationService infoController)
 {
     _gameController = gameController;
     _infoController = infoController;
 }
 public HeaderMenuMobileViewComponent(IProductService productService, IInformationService informationService)
 {
     _productService     = productService;
     _informationService = informationService;
 }
Exemple #38
0
 public InformationServiceContext(IInformationService service)
 {
     this.service = service;
 }
 public InformationController(IInformationService service)
 {
     _service = service;
 }
 public AnnouncementsController(IInformationService grantSvc)
 {
     _svc = grantSvc;
 }
Exemple #41
0
 public InformationController(IInformationService informationService, IViewCommandExecutor commandExecutor, IMapper mapper)
 {
     this._informationService = informationService;
     this._commandExecutor    = commandExecutor;
     this._mapper             = mapper;
 }
        private void CreateProxy()
        {
            if (endpointName.Length != 0)
            {
                if (remoteAddress != null)
                {
                    if (credentials != null)
                        this.proxy = new InfoServiceProxy(endpointName, remoteAddress, credentials);
                    else
                        this.proxy = new InfoServiceProxy(endpointName, remoteAddress);
                }
                else
                {
                    if (credentials != null)
                        this.proxy = new InfoServiceProxy(endpointName, credentials);
                    else
                        this.proxy = new InfoServiceProxy(endpointName);
                }

                this.service = this.proxy;
            }
        }