private void cbPublishersList_SelectedIndexChanged(object sender, EventArgs e) { if (conferenceInProgress != null) { if ((cbPublishersList.SelectedIndex < conferenceInProgress.Publishers.Count) && (cbPublishersList.SelectedIndex >= 0)) { Conference.Publisher publisher = conferenceInProgress.Publishers[cbPublishersList.SelectedIndex]; tbParticipantId.Text = publisher.Id; tbParticipantJid.Text = publisher.Jid_im; cbPublisherSharing.Checked = false; cbPublisherSharing.Checked = false; if ((publisher.Media != null) && (publisher.Media.Count > 0)) { foreach (String media in publisher.Media) { if (media == "sharing") { cbPublisherSharing.Checked = true; } else if (media == "video") { cbPublisherVideo.Checked = true; } } } } } }
partial void cbPublishersList_SelectionChanged(NSObject sender) { if (conferenceInProgress != null) { if ((cbPublishersList.SelectedItemIndex < conferenceInProgress.Publishers.Count) && (cbPublishersList.SelectedItemIndex >= 0)) { Conference.Publisher publisher = conferenceInProgress.Publishers[(int)cbPublishersList.SelectedItemIndex]; txtParticipantId.StringValue = publisher.Id; txtParticipantJid.StringValue = publisher.Jid_im; cbPublisherSharing.State = NSCellStateValue.Off; cbPublisherSharing.State = NSCellStateValue.Off; if ((publisher.Media != null) && (publisher.Media.Count > 0)) { foreach (String media in publisher.Media) { if (media == "sharing") { cbPublisherSharing.State = NSCellStateValue.On; } else if (media == "video") { cbPublisherVideo.State = NSCellStateValue.On; } } } } } }