Esempio n. 1
0
 private void button4_Click_1(object sender, EventArgs e)
 {
     if (listBoxGameLobbies.SelectedValue is String)
     {
         //Connect to new lobby
         requestHandlerMD.connectToNewLobby();
         //Update Lobbies state
         button9_Click(null, null);
     }
     else
     {
         MonopolyDealServiceReference.GameLobby gl = listBoxGameLobbies.SelectedValue as MonopolyDealServiceReference.GameLobby;
         requestHandlerMD.connectToExistingLobby(gl.guid);
         //Update Lobbies state
         button9_Click(null, null);
     }
 }