public JungleCampTimerView( IJungleCampFactory jungleCampFactory, ITimeableElementConfigurator configurator, IHookService hookService) { InitializeComponent(); DataContext = this; OwnJungleCamps = jungleCampFactory.CreateAll(JungleCampPosition.Own); EnemyJungleCamps = jungleCampFactory.CreateAll(JungleCampPosition.Enemy); _allCamps = OwnJungleCamps.Concat(EnemyJungleCamps).ToList(); Topmost = true; configurator.Initialize(_allCamps); hookService.Hook(); }
private void StartTimers_Click(object sender, RoutedEventArgs e) { var summonerSpells = new List <SummonerSpell> { _summonerSpellFactory.CreateFlash(TxbSummoner1.Text, 0), _summonerSpellFactory.CreateFlash(TxbSummoner2.Text, 1), _summonerSpellFactory.CreateFlash(TxbSummoner3.Text, 2), _summonerSpellFactory.CreateFlash(TxbSummoner4.Text, 3), _summonerSpellFactory.CreateFlash(TxbSummoner5.Text, 4) }; var timerView = new FlashTimerView(); timerView.Initialize(summonerSpells); Visibility = Visibility.Hidden; _configurator.Initialize(summonerSpells); _hookService.Hook(); timerView.Show(); }
public void Hook(Action <NativeMouseInput> onMouseInput) { _onMouseInput = onMouseInput; _hookService.Hook(HookType.MouseLowlevel, OnHookReceived); }
public void Hook(Action <NativeKeyboardInput> onKeyboardInput) { _onKeyboardInput = onKeyboardInput; _hookService.Hook(HookType.KeyBoardLowLevel, OnHookReceived); }