public async void OnSelectedExplorerItemChanged() { var queueNode = SelectedExplorerItem.As <QueueExplorerItem>(); if (queueNode != null) { SelectedQueue = queueNode.Queue; } await RefreshMessages(); NotifyPropertiesChanged(); }
public async Task RefreshMessages(string columnName = null, bool ascending = false) { var endpointNode = SelectedExplorerItem.As <AuditEndpointExplorerItem>(); if (endpointNode != null) { await RefreshEndpoint(endpointNode.Endpoint, searchQuery : SearchBar.SearchQuery, orderBy : columnName, ascending : ascending); } var queueNode = SelectedExplorerItem.As <QueueExplorerItem>(); if (queueNode != null) { await RefreshQueue(queueNode.Queue); } }