public MatchmakingTabViewModel(Dispatcher dispatcher)
        {
            Log.Info("Creating matchmaking view.");
            GameTypeList = new List<GameType>();
            var g1 = new GameType();
            var g2 = new GameType();
            var g3 = new GameType();
            g1.Name = "Matchmaking";
            g1.Icon = "pack://application:,,,/OCTGN;component/Resources/matchmaking-icon.png";
            g2.Name = "Custom Games";
            g2.Icon = "pack://application:,,,/OCTGN;component/Resources/custom-games-icon.png";
            g3.Name = "Spectating";
            g3.Icon = "pack://application:,,,/OCTGN;component/Resources/spectator-icon.png";

            GameTypeList.Add(g1);
            GameTypeList.Add(g2);
            GameTypeList.Add(g3);
            GameModes = new ObservableCollection<GameMode>();
            _dispatcher = dispatcher;
            _timer = new Timer(1000);
            _timer.Elapsed += TimerOnElapsed;
            _timer.Start();
            _progressTimer = new Timer(100);
            _progressTimer.Elapsed += ProgressTimerOnElapsed;
            _progressTimer.Start();
        }
 public void PickGameType(GameType g)
 {
     if (g == null)
     {
         Log.Warn("Tried to pick null game type?");
         return;
     }
 }