Class SimpleMenuCommand
Inheritance
System.Object
SimpleMenuCommand
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
public class SimpleMenuCommand : ICommandHandler
Constructors
|
Improve this Doc
View Source
SimpleMenuCommand(Func<String, Boolean>)
Declaration
public SimpleMenuCommand(Func<string, bool> action)
Parameters
| Type |
Name |
Description |
| System.Func<System.String, System.Boolean> |
action |
|
|
Improve this Doc
View Source
SimpleMenuCommand(Func<String, Boolean>, Func<String, CommandState, Boolean>)
Declaration
public SimpleMenuCommand(Func<string, bool> action, Func<string, CommandState, bool> update)
Parameters
| Type |
Name |
Description |
| System.Func<System.String, System.Boolean> |
action |
|
| System.Func<System.String, CommandState, System.Boolean> |
update |
|
Methods
|
Improve this Doc
View Source
HandleAndUpdateCommand(Func<String, Boolean>, Func<String, CommandState, Boolean>)
Declaration
public static ICommandHandler HandleAndUpdateCommand(Func<string, bool> action, Func<string, CommandState, bool> update)
Parameters
| Type |
Name |
Description |
| System.Func<System.String, System.Boolean> |
action |
|
| System.Func<System.String, CommandState, System.Boolean> |
update |
|
Returns
|
Improve this Doc
View Source
HandleCommand(Func<String, Boolean>)
Declaration
public static ICommandHandler HandleCommand(Func<string, bool> action)
Parameters
| Type |
Name |
Description |
| System.Func<System.String, System.Boolean> |
action |
|
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
ICommandHandler.OnCommand(String)
Declaration
bool ICommandHandler.OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICommandHandler.OnSelected(MenuWithHandler, Boolean)
Declaration
void ICommandHandler.OnSelected(MenuWithHandler selectedMenu, bool selected)
Parameters
|
Improve this Doc
View Source
ICommandHandler.OnUpdateCommand(String, CommandState)
Declaration
bool ICommandHandler.OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements