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();
        }
Example #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();
        }