This documentation is for the old version. Go to the latest Graphics Mill docs

QueueManager Class

This class is used to optimize asynchronous item loading.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Class QueueManager
C#
public class QueueManager

Remarks

Most of functionality of this class is used internally. However it has two public members which should be used when you implement your own list items and want the control to load them asynchronously.

The method StartQueues() should be used every time when it is necessary to update items. Typically you call it in implementation of the GetIconKey(View) and GetText(Int32) methods when this data is not available yet. You can freely call this method when queues are already in process. Such calls will be just ignored. This way you need not check whether it is already running or something like this.

The second method MoveToHead(IQueueItem, Int32) is used to increase the priority of certain item. For example, when the user scrolls control view area, you can increase the priority of visible items by calling this method in the GetIconKey(View) method implementation.

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.WinControls.QueueManager

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference