Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!room.IsUserInGame(user))
     {
         Session["Player"] = room.AddUserToGame(user);
     }
     if (!user.Equals(room.host) || room.users.Count < 2)
     {
         HostPanel.Visible = false;
     }
     else
     {
         HostPanel.Visible = true;
     }
 }