private void miDeleteQueryMessage_Click(object sender, RoutedEventArgs e) { _loadingText = "Processing..."; _sys.PurgeMessages(_sys.Items.Where(i => !i.Processed)); }