Exemple #1
0
 private void OnGetAllReadyUsers(IScsServerClient sc, GetAllReadyUsersCmd cmd)
 {
     GetAllReadyUsersCmdAck ack = new GetAllReadyUsersCmdAck();
     ack.RepliedMessageId = cmd.MessageId;
     ack.sender_name = this_name;
     ack.users = new List<ReadyUserItem>();
     for (int i = 0; i < 30; i++)
     {
         ack.users.Add(new ReadyUserItem()
         {
             id = i.ToString(),
             name = "张三" + i.ToString(),
             is_male = i % 2 == 0,
             age = (uint)i + 32,
             dcm_type = "CT",
             study_department = "放射科",
             report_num = 1,
             dcm_num = 1,
             desc = "",
             available = true
         });
     }
     Helper.tcp_server_send(sc, ack);
 }
Exemple #2
0
 private void OnGetAllReadyUsersAck(AsyncTcpClient client, GetAllReadyUsersCmdAck ack)
 {
     lock (_users_lock)
     {
         this._users = ack.users;
         ReplaceAllUsersToDisplay(this._users);
     }
     scroll.Reset();
 }