// Method showing only currently handovered keys: protected virtual void ShowHandoveredRoomKeys() { IEnumerable <RoomKey> results; try { results = _queryProvider.GetHandoveredRoomKeysAsync().Result; } catch (Exception e) { SendTabNotification(new TabNotificationSentEventArgs() { Message = e.Message }); return; } if (results.Count() == 0) { DialogBoxFactory.GetInfoBox("Kolekcja jest pusta. Nie wydano żadnego klucza.").Show(); } ResetKeysCollection(results); ResetPresentedDetail(); }