private void _buttConnect_Clicked(ImageButton sender) { if (!_connectTextbox.IsVisible()) { _connectTextbox.SetVisible(true); return; } else { if (!_isConnecting) { StartConnect(_connectTextbox.Text); } else { _isConnecting = false; NetworkManager.Disconnect(); } } }