Example #1
0
        private void lbItems_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var itm = (lbItems.SelectedItem as QueueItem);

            if (itm != null && _dlg != null && !_dlg.IsVisible && _dlgShown)
            {
                SetSelectedItem(itm);
            }

            if (itm.Queue.Type == QueueType.Error) // Move back to origin
            {
                _mgr.MoveErrorMessageToOriginQueue(itm);
            }
        }
        private void miReturnErrorMsg_Click(object sender, RoutedEventArgs e)
        {
            QueueItem itm = ((MenuItem)sender).Tag as QueueItem;

            _mgr.MoveErrorMessageToOriginQueue(itm);
        }
 public async Task MoveErrorMessageToOriginQueue(QueueItem itm)
 {
     InvokeWhileMonitoringPaused(() => {
         _mgr.MoveErrorMessageToOriginQueue(itm);
     });
 }