private async void OnLogout() { try { await _model.LogoutAsync(); LogoutSuccess?.Invoke(this, EventArgs.Empty); } catch (NetworkException ex) { OnMessageApplication($"Unexpected error! ({ex.Message})"); } }
private void ButtonQuitRoom_OnClick(object sender, RoutedEventArgs e) { LogoutSuccess?.Invoke(); }