void on_mnuUsersConnectTo_activate(object o, EventArgs e)
{
try {
IDestination destination = selectedNode.FirstConnectableDestination;
if (destination != null) {
ITransport transport = destination.CreateTransport(ConnectionType.NodeConnection);
network.ConnectTo(transport);
} else {
Gui.ShowErrorDialog("You cannot connect to this user.");
}
} catch (Exception ex) {
LoggingService.LogError(ex);
Gui.ShowErrorDialog(ex.Message);
}
}