示例#1
0
        public void Start()
        {
            GameListener = new GameBroadcastListener(AppConfig.Instance.BroadcastPort);
            GameListener.StartListening();
			UpdateWebsiteTimer = new Timer(10000);
			UpdateWebsiteTimer.Elapsed += UpdateWebsiteTimerOnElapsed;
			if(AppConfig.Instance.TestMode == false)
				UpdateWebsiteTimer.Start();
        }
示例#2
0
        public CustomGameList()
        {
            InitializeComponent();
            broadcastListener = new GameBroadcastListener();
            broadcastListener.StartListening();
            dragHandler = this.ListViewGameList_OnDragDelta;
            ListViewGameList.AddHandler(Thumb.DragDeltaEvent, dragHandler, true);
            HostedGameList = new ObservableCollection<HostedGameViewModel>();
            Program.LobbyClient.OnLoginComplete += LobbyClient_OnLoginComplete;
            Program.LobbyClient.OnDisconnect += LobbyClient_OnDisconnect;
            //Program.LobbyClient.OnDataReceived += LobbyClient_OnDataReceived;
            Program.LobbyClient.Chatting.OnCreateRoom += ChattingOnOnCreateRoom;

            Spectate = Prefs.SpectateGames;
            ShowKillGameButton = Prefs.IsAdmin;
            ShowUninstalledGames = Prefs.HideUninstalledGamesInList == false;

            _refreshGameListTimer = new Timer(RefreshGamesTask,null,5000,15000);
        }
示例#3
0
        public CustomGameList()
        {
            InitializeComponent();
            broadcastListener = new GameBroadcastListener();
            broadcastListener.StartListening();
            dragHandler = this.ListViewGameList_OnDragDelta;
            ListViewGameList.AddHandler(Thumb.DragDeltaEvent, dragHandler, true);
            HostedGameList = new ObservableCollection<HostedGameViewModel>();
            Program.LobbyClient.OnLoginComplete += LobbyClient_OnLoginComplete;
            Program.LobbyClient.OnDisconnect += LobbyClient_OnDisconnect;
            Program.LobbyClient.OnDataReceived += LobbyClient_OnDataReceived;
            Program.LobbyClient.Chatting.OnCreateRoom += ChattingOnOnCreateRoom;

            timer = new Timer(10000);
            timer.Start();
            timer.Elapsed += this.TimerElapsed;
            refreshVisualListTimer = new Timer(10000);
            refreshVisualListTimer.Start();
            refreshVisualListTimer.Elapsed += RefreshGameList;
            ShowRunningGames = Prefs.ShowRunningGames;
            ShowUninstalledGames = Prefs.HideUninstalledGamesInList == false;
        }
示例#4
0
 public void Start()
 {
     GameListener = AppConfig.Instance.Test ? new GameBroadcastListener(21235) : new GameBroadcastListener(21237);
     GameListener.StartListening();
 }
示例#5
0
 public void Start()
 {
     GameListener = new GameBroadcastListener(AppConfig.Instance.BroadcastPort);
     GameListener.StartListening();
 }