コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 public void Hook(Action <NativeMouseInput> onMouseInput)
 {
     _onMouseInput = onMouseInput;
     _hookService.Hook(HookType.MouseLowlevel, OnHookReceived);
 }
コード例 #4
0
 public void Hook(Action <NativeKeyboardInput> onKeyboardInput)
 {
     _onKeyboardInput = onKeyboardInput;
     _hookService.Hook(HookType.KeyBoardLowLevel, OnHookReceived);
 }