CentralServerDemo.MainForm.btnJoinPrivateRoom_Click C# (CSharp) Method

btnJoinPrivateRoom_Click() private method

private btnJoinPrivateRoom_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
		private void btnJoinPrivateRoom_Click(object sender, EventArgs e)
		{
			InputBoxResult result = InputBox.Show("Room name:", "Enter room name", "", null);

			if (result == null)
				return;

			InputBoxResult result2 = InputBox.Show("Password:", "Enter Password", "", null);

			if (result2 == null)
				return;

			string password = result2.Text.Trim();

			if (result.OK)
			{
				if (result.Text.Trim() != "")
					//Use JoinConferenceRoom to join a private room
					// if the room does not exist it gets created.
					// If the room already exist, you will join it
					// and the UserJoinedConference event will be fired
					// for each user that is presnet in the room

					ics.JoinConferenceRoom(result.Text, password);
			}
		}
MainForm