Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8565

C#, How to stop Command from executing by checking the conditions in Command.BeginCommand?

$
0
0

@Arif_Hatim wrote:

Hello!

I'm currently having a requirement that require me to check the current condition before executing new Command. So what I'm trying to do now is to have the condition checks in "Command.BeginCommand" event and if it does not meet the condition, do not execute the Command.

However the problem is, in "Command.BeginCommand" does not have any return values to indicate if the command is to be canceled. Are there any other ways to achieve this without needing to implement the checks in every commands class?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8565

Trending Articles