Table of Contents

Delegate ProcessCommandDelegate

Namespace
CADability
Assembly
CADability.dll

Delegate definition for ProcessCommandEvent, which is raised when the user selects a menu command from the main menu.

public delegate void ProcessCommandDelegate(string MenuId, ref bool Processed)

Parameters

MenuId string

The menuid of the command (see MenuResource.xml)

Processed bool

Set to true, if you have processed this command and no further action is required, leave unmodified if CADability should process this command

Constructors

ProcessCommandDelegate(object, nint)

public ProcessCommandDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(string, ref bool, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string MenuId, ref bool Processed, AsyncCallback callback, object @object)

Parameters

MenuId string
Processed bool
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(ref bool, IAsyncResult)

public virtual void EndInvoke(ref bool Processed, IAsyncResult result)

Parameters

Processed bool
result IAsyncResult

Invoke(string, ref bool)

public virtual void Invoke(string MenuId, ref bool Processed)

Parameters

MenuId string
Processed bool