Beispiel #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
            {
            }
        }
Beispiel #2
0
 /// <summary>
 /// 加载常规参数
 /// </summary>
 public void CommonParameter_Load()
 {
     try
     {
         //设置为不可见(上传提示)
         this.txtUPloadTip.Visibility = System.Windows.Visibility.Collapsed;
         //当前用户头像设置
         this.imgPerson.Source = new BitmapImage(new Uri(Constant.TreeServiceAddressFront + Constant.FtpServercePersonImgName + Constant.LoginUserName + ".png", UriKind.RelativeOrAbsolute));
         //当前用户名称显示
         this.txtSelfName.Text = Constant.SelfName;
         //当前用户公司
         Constant.SelfCompony = LyncHelper.GetInformationAcording(Constant.lyncClient.Self.Contact, ContactInformationType.Company);
         //当前用户职位
         Constant.SelfPosition = LyncHelper.GetInformationAcording(Constant.lyncClient.Self.Contact, ContactInformationType.Title);
         //当前用户公司名称显示
         this.txtCompony.Text = Constant.SelfCompony;
         //当前用户职位显示
         this.txtPosition.Text = Constant.SelfPosition;
         if (Constant.IsMeetingPresenter)
         {
             //显示模式切换面板
             this.gridModelChangedPanel.Visibility = System.Windows.Visibility.Visible;
             //显示客户端命令控制面板
             this.gridClientControlPanel.Visibility = System.Windows.Visibility.Visible;
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
 }