public string SendGroupMessage(GroupMessage message)
 {
     if (!HasFunction(FunctionType.ChatSystem))
     {
         offlineGroupMessageList.AddMessage(message);
         UpdatePage.ChatSystemUpdate();
     }
     return(chatSystemClient.SendGroupMessagePackage(message));
 }
 public void SystemOnLine(FunctionType functionType)
 {
     FunctionTypes.Add(functionType);
     new Thread(() =>
     {
         if (functionType == FunctionType.ChatSystem)
         {
             if (offlinePrivateMessageList.GetSize() > 0)
             {
                 chatSystemClient.SendPrivateMessagePackage(offlinePrivateMessageList);
                 offlinePrivateMessageList = new PrivateMessageList();
             }
             if (offlineGroupMessageList.GetSize() > 0)
             {
                 chatSystemClient.SendGroupMessagePackage(offlineGroupMessageList);
                 offlineGroupMessageList = new GroupMessageList();
             }
             UpdatePage.ChatSystemUpdate();
         }
     }).Start();
 }
 public void AddGroupMessage(GroupMessage newMessage)
 {
     groupMessageList.AddMessage(newMessage);
     UpdatePage.ChatSystemUpdate();
 }
 public void AddPrivateMessage(PrivateMessage newMessage)
 {
     privateMessageList.AddMessage(newMessage);
     UpdatePage.ChatSystemUpdate();
 }
 public void UpdateGroupMessageList(GroupMessageList groupMessageList)
 {
     this.groupMessageList = groupMessageList.Copy();
     UpdatePage.ChatSystemUpdate();
 }
 public void UpdatePrivateMessageList(PrivateMessageList privateMessageList)
 {
     this.privateMessageList = privateMessageList.Copy();
     UpdatePage.ChatSystemUpdate();
 }
 public void UpdateChatGroupList(ChatGroupList chatGroupList)
 {
     this.chatGroupList.GroupList = chatGroupList.Copy().GroupList;
     UpdatePage.ChatSystemUpdate();
 }