Ejemplo n.º 1
0
        /// <summary>
        /// 全部成员允许说话
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCancelMuteAll_Click(object sender, EventArgs e)
        {
            ConferenceRoomManagement crm = new ConferenceRoomManagement(txtConference.Text, txtAddress.Text, txtPort.Text);

            if (!crm.IsExistConferenceRoom())
            {
                MessageBox.Show("会议室不存在!");
                return;
            }
            foreach (var usr in crm.GetConferenceRoomUserList())
            {
                if (!crm.UnmuteConferenceUser(usr.UserCode, out string errorMessage))
                {
                    //MessageBox.Show("设置失败!");
                }
            }
        }
Ejemplo n.º 2
0
        private void btnCancelMute_Click(object sender, EventArgs e)
        {
            ConferenceRoomManagement crm = new ConferenceRoomManagement(txtConference.Text, txtAddress.Text, txtPort.Text);

            if (!crm.IsExistConferenceRoom())
            {
                MessageBox.Show("会议室不存在!");
                return;
            }

            var oldList = crm.GetConferenceRoomUserList();

            var item = oldList.FirstOrDefault(x => x.UserCode == txtUserCode.Text);

            if (item != null && item.AudioStatus == EnumAudioStatus.Mute)
            {
                if (!crm.UnmuteConferenceUser(item.UserCode, out string errorMessage))
                {
                    MessageBox.Show("设置失败!");
                }
            }
        }