protected override async void LoadItemsAsync() { IsBusy = true; //uint? triggerId = TriggerId > 0 ? TriggerId : (uint?)null; try { IList <Event> events = (await Executer.Execute(() => EventProxyServer.GetEvents(TriggerId, null, EventSortField.EventId, Select.None, Select.None))).ToList(); Items = InitDuration(events, TriggerPriority); } catch (Exception ex) { ErrorHandler.Handle(ex); } finally { IsBusy = false; } }
protected override async void LoadItemsAsync() { IsBusy = true; IList <Event> events; try { events = (await Executer.Execute(() => EventProxyServer.GetEvents(null, EVENTS_LIMIT, EventSortField.EventId, Select.Extend, Select.Extend))).ToList(); } catch (Exception ex) { ErrorHandler.Handle(ex); return; } finally { IsBusy = false; } Items = InitDuration(events); }