Property CanRun
CanRun
Gets or sets whether the button is on, asked when the window asks its commands again (the selection, the drawing or a command changes). Null, until set: a button that starts a command or runs a macro is on while a drawing is open, one that runs a callback always. A predicate that throws gives false.
public Func<CadPluginContext, bool> CanRun { get; set; }