Adds a menu item

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
void AddAsyncMenuItem(
	string name,
	Func<Task<IEnumerable<Symbol>>> symbolFunc
)
Visual Basic
Sub AddAsyncMenuItem ( 
	name As String,
	symbolFunc As Func(Of Task(Of IEnumerable(Of Symbol)))
)
Visual C++
void AddAsyncMenuItem(
	String^ name, 
	Func<Task<IEnumerable<Symbol^>^>^>^ symbolFunc
)
F#
abstract AddAsyncMenuItem : 
        name : string * 
        symbolFunc : Func<Task<IEnumerable<Symbol>>> -> unit 

Parameters

name
Type: System..::..String
Name of the menu item
symbolFunc
Type: System..::..Func<(Of <(<'Task<(Of <(<'IEnumerable<(Of <(<'Symbol>)>)>>)>)>>)>)>
Delegate to be called when the menu item is selected

Remarks

Use this method when it may take some time to retrieve a symbol list, and you don't want to display your own UI. RightEdge will display a progress dialog while the symbolFunc delegate runs in the background.

See Also