예제 #1
0
        /// <summary>
        /// 会议卡片加载
        /// </summary>
        public void RoomCardInit(ConferenceRoomItem roomItem, ConferenceInformationEntityPC item)
        {
            try
            {
                if (this.ItemClickSendItemCallBack != null)
                {
                    if (this.AddCardEventCallBack != null)
                    {
                        this.AddCardEventCallBack();
                    }

                    //当前选择的会议聊天室
                    if (this.CurrentConferenceRoomItem != null)
                    {
                        this.CurrentConferenceRoomItem.StyleChangeToNoSelected();
                    }
                    //临时存储的会议信息
                    MyConferenceCodeEnterEntity.TempConferenceInformationEntity = item;
                    this.CurrentConferenceRoomItem = roomItem;
                    this.CurrentConferenceRoomItem.StyleChangeToSelected();

                    MyConferenceView.myConferenceView.TipShow(true);

                    //点击回调
                    this.ItemClickSendItemCallBack(item);
                }
            }
            catch (Exception ex)
            {
                LogManage.WriteLog(this.GetType(), ex);
            }
            finally
            {
            }
        }
예제 #2
0
 /// <summary>
 /// 筛选会议室
 /// </summary>
 /// <param name="conferenceInformationEntityPC"></param>
 public void RoomItemForceToSelectedStyle(ConferenceInformationEntityPC conferenceInformationEntityPC)
 {
     try
     {
         foreach (var item in this.wrapPanle.Children)
         {
             if (item is ConferenceRoomItem)
             {
                 ConferenceRoomItem conferenceRoomItem = item as ConferenceRoomItem;
                 if (conferenceInformationEntityPC.MeetingName.Equals(conferenceRoomItem.conferenceInformationEntityPC.MeetingName))
                 {
                     //当前选择的会议聊天室
                     if (this.CurrentConferenceRoomItem != null)
                     {
                         this.CurrentConferenceRoomItem.StyleChangeToNoSelected();
                     }
                     //临时存储的会议信息
                     MyConferenceCodeEnterEntity.TempConferenceInformationEntity = conferenceInformationEntityPC;
                     this.CurrentConferenceRoomItem = conferenceRoomItem;
                     this.CurrentConferenceRoomItem.StyleChangeToSelected();
                     break;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }
예제 #3
0
 /// <summary>
 /// 获取会议信息(会议室)
 /// </summary>
 public void ConferenceRoomFlesh(Action action)
 {
     try
     {
         ModelManage.ConferenceInfo.GetConferenceInformation(MyConferenceCodeEnterEntity.WebLoginUserName, new Action <bool, List <ConferenceInformationEntityPC> >((successed, json) =>
         {
             //获取会议信息返回标示
             if (successed)
             {
                 //清除会议信息集合
                 this.ConferenceInformationEntityList.Clear();
                 //json转换为对应的实体
                 this.ConferenceInformationEntityList = json;
                 //遍历会议信息
                 foreach (var item in ConferenceInformationEntityList)
                 {
                     //若为该会议的成员则加载该条会议
                     if (item.JoinPeople.Contains(MyConferenceCodeEnterEntity.SelfUri))
                     {
                         //创建一个会议视图子项
                         ConferenceRoomItem roomItem = new ConferenceRoomItem(item);
                         //添加子项
                         this.wrapPanle.Children.Add(roomItem);
                     }
                 }
                 //回调
                 action();
             }
             else
             {
             }
         }));
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
 }