public GLGraphicsFactory(Dictionary <string, ITexture> textures, Resolver resolver, IGLUtils glUtils, IGraphicsBackend graphics, IBitmapLoader bitmapLoader, IRenderThread renderThread, IResourceLoader resources, IIconFactory icons, IBrushLoader brushes, IRenderMessagePump messagePump) { Icons = icons; Brushes = brushes; _renderThread = renderThread; _textures = textures; _resolver = resolver; _resources = resources; _bitmapLoader = bitmapLoader; _spriteSheetLoader = new SpriteSheetLoader(_resources, _bitmapLoader, addAnimationFrame, loadImage, graphics, messagePump); AGSGameSettings.CurrentSkin = new AGSBlueSkin(this, glUtils).CreateSkin(); }
public GLGraphicsFactory(ITextureCache textures, Resolver resolver, IGraphicsBackend graphics, IBitmapLoader bitmapLoader, IRenderThread renderThread, IResourceLoader resources, IIconFactory icons, IBrushLoader brushes, IRenderMessagePump messagePump, IGameSettings settings, IBorderFactory borders) { Icons = icons; Brushes = brushes; Borders = borders; _renderThread = renderThread; _textures = textures; _resolver = resolver; _resources = resources; _bitmapLoader = bitmapLoader; _spriteSheetLoader = new SpriteSheetLoader(_resources, _bitmapLoader, addAnimationFrame, loadImage, graphics, messagePump); settings.Defaults.Skin = new AGSBlueSkin(this).CreateSkin(); }
public TrayPresenter(ServiceContainer serviceContainer, UserStateListener userStateListener, IIconFactory trayIconFactory, ITooltipTextFactory tooltipTextFactory) { _iconFactory = trayIconFactory; _toolTipFactory = tooltipTextFactory; _serviceContainer = serviceContainer; _userStateListener = userStateListener; TeamViewModel = new MainWindowViewModel(_serviceContainer.AuthenticationService, _serviceContainer.RoomService, _serviceContainer.GlobalRoomService, _serviceContainer.UserStateService, _serviceContainer.UserMessageService); _serviceContainer.AuthenticationService.LoginCompleted += HandleLoginCompleted; _userStateListener.TimeChanged += UserStateListenerTimeChanged; _userStateListener.UserStateChanged += UserStateListenerUserStateChanged; }
public void Register <TViewModel>(string txLibResource, IIconFactory iconFactory, CommandCategory category) { GetNavigationEntry(category).Add(new ItemCommand <ClientViewModel> { Header = Tx.T(txLibResource), Icon = iconFactory.Create(), Command = new DelegateCommand <ClientViewModel>(model => { _windowService.Show(typeof(TViewModel), builder => { builder.RegisterInstance(model); builder.RegisterSingleton <ITargetedRestClient>(new InjectionFactory(container => container.Resolve <IMazeRestClient>().CreateTargeted(model.ClientId))); }, window => { window.TitleBarIcon = iconFactory.Create(); window.Title = Tx.T(txLibResource); window.ShowInTaskbar = true; }, null, out _); }) }); }
public WowheadService(HttpClient httpClient, IIconFactory iconFactory, string wowheadUrl) { _httpClient = httpClient; _wowheadUrl = wowheadUrl; _iconFactory = iconFactory; }
// ... public GUIManager(IWindowFactory iwf, IButtonFactory ibf, IIconFactory iif) { // ... }