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(); }
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); }
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; }
public void Start() { GameListener = AppConfig.Instance.Test ? new GameBroadcastListener(21235) : new GameBroadcastListener(21237); GameListener.StartListening(); }
public void Start() { GameListener = new GameBroadcastListener(AppConfig.Instance.BroadcastPort); GameListener.StartListening(); }