C# Class TraktPlugin.GUI.GUIBackgroundTask

ファイルを表示 Open project: trakt/Trakt-for-Mediaportal

Protected Properties

Property Type Description
instance GUIBackgroundTask

Private Properties

Property Type Description
ExecuteInBackgroundAndCallback bool
ExecuteTaskResultHandler void
StopBackgroundTask void
TaskWatcherTimerElapsed void

Public Methods

Method Description
StopBackgroundTask ( ) : void

Protected Methods

Method Description
GUIBackgroundTask ( ) : System

Private Methods

Method Description
ExecuteInBackgroundAndCallback ( Func task, object>.Action resultHandler, string taskDescription, bool timeout ) : bool

This method should be used to call methods in GUI that might take a few seconds. The Wait Cursor will be shown while executing the task and the result handler will be called on MediaPortal's Main thread.

ExecuteTaskResultHandler ( ) : void
StopBackgroundTask ( bool byUserRequest ) : void
TaskWatcherTimerElapsed ( object sender, System e ) : void

Method Details

GUIBackgroundTask() protected method

protected GUIBackgroundTask ( ) : System
return System

StopBackgroundTask() public method

public StopBackgroundTask ( ) : void
return void

Property Details

instance protected_oe static_oe property

protected static GUIBackgroundTask,TraktPlugin.GUI instance
return GUIBackgroundTask