/// <summary> /// Purges the queue which is currently selected in the QSetExplorer. /// </summary> public void PurgeActiveQSetExplorerQueue() { if (_primaryControls.HasActiveDocument) { QSetQueueItem queueItem = _primaryControls.GetQSetExplorerActiveItem() as QSetQueueItem; if (queueItem != null) { QueueTaskManager.PurgeQueue(queueItem); } } }
/// <summary> /// Purges the queue which is currently active in the focused MessageBrowser. /// </summary> public void PurgeActiveQueue() { if (_primaryControls.HasActiveDocument) { MessageBrowser messageBrowser = _primaryControls.GetActiveMessageBrowser(); if (messageBrowser != null) { QueueTaskManager.PurgeQueue(messageBrowser.QSetQueueItem); } } }