コード例 #1
0
 /// <summary>
 /// Load nội dung chat
 /// </summary>
 /// <Modified>
 /// Name     Date         Comments
 /// LuanBH  8/21/2015   created
 /// </Modified>
 private void LoadNoiDungChat()
 {
     if (string.IsNullOrEmpty(SoHieuXeDangChat))
     {
         return;
     }
     if (DoiXeChat)
     {
         txtChatBox.Lines = ConvertMessageToChatLines(CuocGoi.EnVangVip_DienThoai_LayNoiDungChatCuaXe(SoHieuXeDangChat));
         DoiXeChat        = false;
     }
     else
     {
         var noiDungChat = CuocGoi.EnVangVip_DienThoai_LayNoiDungChatCuaXe(SoHieuXeDangChat, ThoiDiemLoadChatCuoi);
         if (noiDungChat != null && noiDungChat.Count > 0)
         {
             var newLines = ConvertMessageToChatLines(noiDungChat);
             foreach (var line in newLines)
             {
                 txtChatBox.AppendText("\r\n" + line);
             }
         }
     }
 }