Exemple #1
0
        private void RefreshPendingSets(object sender = null, ElapsedEventArgs e = null)
        {
            Players              = new ObservableCollection <Player>(_apiLink.GetAllEntrants());
            PendingSets          = new ObservableCollection <Set>(_apiLink.GetAllPendingSets());
            PendingSetsForStream = new ObservableCollection <Set>(_apiLink.GetAllPendingSets(true));
            Output.Data.Top8List = _apiLink.GetAvailablesTop8();

            if (!IsInitialized)
            {
                IsInitialized = true;
            }

            _refreshInfo.Start();
        }
Exemple #2
0
 private void RefreshPendingSets(object sender, ElapsedEventArgs e)
 {
     _players             = _api.GetAllEntrants();
     PendingSets          = _api.GetAllPendingSets();
     Output.Data.Top8List = _api.GetAvailablesTop8();
     _refreshInfo.Start();
 }
Exemple #3
0
        private void BracketSynchro()
        {
            BracketApi    api  = Activator.CreateInstance(Configuration.Instance.Bracket.Api, Configuration.Instance.Bracket) as BracketApi;
            List <Player> list = api.GetAllEntrants();

            foreach (Player player in list)
            {
                PlayerDatabase.UpdateOrAddPlayer(player);
            }
        }