Show / Hide Table of Contents

Class SimpleMenuCommand

Inheritance
System.Object
SimpleMenuCommand
Implements
ICommandHandler
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()
Namespace: CADability.UserInterface
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
Type Description
ICommandHandler
| 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
Type Description
ICommandHandler

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
Type Name Description
MenuWithHandler selectedMenu
System.Boolean selected
| 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

ICommandHandler
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX