예제 #1
0
        /// <summary>
        /// 判断当前用户是否为主持人(该标示在程序全局上使用)
        /// </summary>
        /// <param name="conferenceInformationEntity">会议信息实体</param>
        private static void PresentSetting(ConferenceInformationEntityPC conferenceInformationEntity)
        {
            try
            {
                //主持人邮箱
                string applyPeople = conferenceInformationEntity.ApplyPeople;

                //判断当前用户是否为主持人(该标示在程序全局上使用)
                if (Constant.SelfUri.Equals(applyPeople) || Constant.SelfName.Equals(applyPeople))
                {
                    Constant.IsMeetingPresenter = true;
                }
                else
                {
                    Constant.IsMeetingPresenter = false;
                }

                ////会议主持人
                conferenceInformationEntity.ApplyPeople = LyncHelper.GetUserName(applyPeople);
                string state = LyncHelper.GetInformationAcording(applyPeople, ContactInformationType.Activity);
                string info  = conferenceInformationEntity.ApplyPeople + "(" + state + ")";
                MyConferenceView.myConferenceView.PresenterInfoSetting(info);
            }
            catch (Exception ex)
            {
                LogManage.WriteLog(typeof(MainPageBase), ex);
            }
            finally
            {
            }
        }