public void OnCancelPressed() { if (_isConnected) { return; } Close(); _connectionHandle.AbortConnection(); }