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