Esempio n. 1
0
        public AllControlsApp(IDispatcher dispatcher, IIoCFactory objectFactory, IFilesRepository filesRepository, IFontManager fontManager, IGesturesService gesturesService)
        {
            this.dispatcher      = dispatcher;
            this.objectFactory   = objectFactory;
            this.filesRepository = filesRepository;
            this.fontManager     = fontManager;

            gesturesService.Register(this);
        }
Esempio n. 2
0
        public UIApp(UIAppParameters parameters, IIoCFactory factory, IFilesRepository filesRepository)
        {
            if (parameters.SplashScreenPath != null)
            {
                using (var stream = filesRepository.Open(parameters.SplashScreenPath))
                {
                    splashScreen = factory.Create <IImage>(stream);
                }
            }

            splashScreenBackground = parameters.SplashScreenBackground;
            splashScreenFill       = parameters.SplashScreenFill;
        }
Esempio n. 3
0
 public FontManager(IIoCFactory objectFactory)
 {
     this.objectFactory = objectFactory;
 }
Esempio n. 4
0
 public DefaultClientFactory(IIoCFactory iocFactory) => (this.iocFactory) = (iocFactory);
Esempio n. 5
0
        public WpfAppRunner(SKElement skElement, IDispatcher dispatcher, IUpdatablesService updatablesService, IInputPanel inputPanel, IApplicationStopwatch applicationStopwatch, IIoCFactory iocFactory)
            : base(dispatcher, updatablesService, applicationStopwatch, iocFactory)
        {
            winDispatcher  = skElement.Dispatcher;
            this.skElement = skElement;

            skElement.PaintSurface += (o, args) =>
            {
                inputPanel.Scale = new Vector2((float)(args.Info.Width / skElement.ActualWidth),
                                               (float)(args.Info.Height / skElement.ActualHeight));

                OnRender(args.Surface.Canvas, new Size(args.Info.Width, args.Info.Height));
            };
        }
Esempio n. 6
0
        protected AppRunner(IDispatcher dispatcher, IUpdatablesService updatablesService, IApplicationStopwatch applicationStopwatch, IIoCFactory iocFactory)
        {
            this.dispatcher           = dispatcher;
            this.updatablesService    = updatablesService;
            this.applicationStopwatch = applicationStopwatch;

            Canvas = iocFactory.Create <ICanvas>();
        }