private bool SelectConnectionByUser(DataConnection obj) { return (this.ReceiveData.connection.SenderID == obj.SenderClient.clientstatus.ReceiverPort) && (this.ReceiveData.connection.ReceiverID == obj.ReceiverClient.clientstatus.ReceiverPort); }
private bool SelectIndexOfConnectionByClientId(DataConnection obj) { if (obj.SenderID == ID || obj.ReceiverID == ID) { return true; } else { return false; } }
private bool SelectConnection(DataConnection obj) { if (obj.SenderID == ReceiveData.connection.SenderID && obj.ReceiverID == ReceiveData.connection.ReceiverID) { return true; } else { return false; } }