When we create a new command (inherited from RichTextBoxCommandBase) we have the access to this.AssociatedRichTextBox. But I need the access to properties of the form in which the editor and ribbon bar are just two more properties.
One workaround would be to have empty ExecuteOverride method for the command, and handle the command in CommandExecuting handler of the form.
Another workaround would be to pass the form's reference to custom ribbon bar, and then pass this reference further to the command on command creation.
What is the difference between the two, what is the recommended way?