partial void cbParticipantsList_SelectionChanged(NSObject sender) { if (conferenceInProgress != null) { if ((cbParticipantsList.SelectedItemIndex < conferenceInProgress.Participants.Count) && (cbParticipantsList.SelectedItemIndex >= 0)) { Conference.Participant participant = conferenceInProgress.Participants[(int)cbParticipantsList.SelectedItemIndex]; txtParticipantId.StringValue = participant.Id; txtParticipantJid.StringValue = participant.Jid_im; txtParticipant_PhoneNumber.StringValue = participant.PhoneNumber; cbParticipantModerator.State = (participant.Moderator ? NSCellStateValue.On : NSCellStateValue.Off); cbParticipantMuted.State = (participant.Muted ? NSCellStateValue.On : NSCellStateValue.Off); cbParticipantHold.State = (participant.Hold ? NSCellStateValue.On : NSCellStateValue.Off); cbParticipantConnected.State = (participant.Connected ? NSCellStateValue.On : NSCellStateValue.Off); if (cbParticipantMuted.State == NSCellStateValue.On) { btnParticipantMute.StringValue = "Unmute"; } else { btnParticipantMute.StringValue = "Mute"; } } } }
private void btnParticipantDrop_Click(object sender, EventArgs e) { if (conferenceInProgress != null) { if (cbParticipantsList.SelectedIndex < conferenceInProgress.Participants.Count) { Conference.Participant participant = conferenceInProgress.Participants[cbParticipantsList.SelectedIndex]; rainbowBubbles.ConferenceDropParticipant(conferenceInProgress.Id, participant.Id, callback => { if (callback.Result.Success) { AddStateLine(String.Format("Personal Conference - Drop Participant done")); } else { AddStateLine("Pb to Drop Participant ..."); log.LogDebug("Pb to Drop Participant - error:[{0}]", Util.SerializeSdkError(callback.Result)); } }); } } }
private void ParticipantMute() { if (conferenceInProgress != null) { if (cbParticipantsList.SelectedItemIndex < conferenceInProgress.Participants.Count) { Conference.Participant participant = conferenceInProgress.Participants[(int)cbParticipantsList.SelectedItemIndex]; rainbowBubbles.ConferenceMuteOrUnmutParticipant(conferenceInProgress.Id, participant.Id, !participant.Muted, callback => { if (callback.Result.Success) { AddStateLine(String.Format("Personal Conference - Mute/Unmute Participant done")); } else { AddStateLine("Pb to Mute/Unmute Participant ..."); log.Debug("Pb to Mute/Unmute Participant - error:[{0}]", Util.SerializeSdkError(callback.Result)); } }); } } }