Exemplo n.º 1
0
 public void Dispose()
 {
     broadcastListener.StopListening();
     broadcastListener.Dispose();
     ListViewGameList.RemoveHandler(Thumb.DragDeltaEvent, dragHandler);
     Program.LobbyClient.Disconnected -= LobbyClient_OnDisconnect;
     _refreshGameListTimer.Dispose();
 }
Exemplo n.º 2
0
 public static void Stop()
 {
     _gameListener.StopListening();
     _updateWebsiteTimer.Elapsed -= UpdateWebsiteTimerOnElapsed;
     if (EnableUpdateTimer)
     {
         _updateWebsiteTimer.Stop();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     broadcastListener.StopListening();
     broadcastListener.Dispose();
     ListViewGameList.RemoveHandler(Thumb.DragDeltaEvent, dragHandler);
     Program.LobbyClient.OnLoginComplete       -= LobbyClient_OnLoginComplete;
     Program.LobbyClient.OnDisconnect          -= LobbyClient_OnDisconnect;
     Program.LobbyClient.OnDataReceived        -= LobbyClient_OnDataReceived;
     Program.LobbyClient.Chatting.OnCreateRoom -= ChattingOnOnCreateRoom;
 }