cleans the code

This commit is contained in:
Paul Schneider 2016-11-06 17:48:08 +01:00
commit 0b0d0e2f63

View file

@ -48,6 +48,7 @@ namespace BookAStar.Pages
if (string.IsNullOrEmpty(user.ChatHubConnectionId)) return; if (string.IsNullOrEmpty(user.ChatHubConnectionId)) return;
IsBusy = true; IsBusy = true;
try try
{ {
await App.ChatHubProxy.Invoke<string>("SendPV", user.ChatHubConnectionId, pvEntry.Text); await App.ChatHubProxy.Invoke<string>("SendPV", user.ChatHubConnectionId, pvEntry.Text);
pvEntry.Text = null; pvEntry.Text = null;
@ -60,14 +61,7 @@ namespace BookAStar.Pages
}; };
} }
private void ReconnectButton_Clicked(object sender, EventArgs e)
{
App.ChatHubConnection.Stop();
App.ChatHubConnection.Start();
}
private void ChatHubConnection_StateChanged(StateChange obj) private void ChatHubConnection_StateChanged(StateChange obj)
{ {
Xamarin.Forms.Device.BeginInvokeOnMainThread( Xamarin.Forms.Device.BeginInvokeOnMainThread(