示例#1
0
 private bool DisconnectPhone(PhoneClient phone, string id, string ip)
 {
     if (phone.ID == id)
     {
         phone.Disconnect();
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 private void ConnectPhone(PhoneClient phone, string id, string ip)
 {
     phone.ID = id;
     phone.Ip = ip;
     phone.Connect();
 }