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); }
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; }
public FontManager(IIoCFactory objectFactory) { this.objectFactory = objectFactory; }
public DefaultClientFactory(IIoCFactory iocFactory) => (this.iocFactory) = (iocFactory);
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)); }; }
protected AppRunner(IDispatcher dispatcher, IUpdatablesService updatablesService, IApplicationStopwatch applicationStopwatch, IIoCFactory iocFactory) { this.dispatcher = dispatcher; this.updatablesService = updatablesService; this.applicationStopwatch = applicationStopwatch; Canvas = iocFactory.Create <ICanvas>(); }