Hi Mihajlo,
In my opinion, the command should not be tied with the form in any way. If it is you will not be able to reuse it with other forms. The ExecuteOverride method has a single parameter and you should pass all the information needed for the command in it (perhaps you can create a custom object and store all needed inforation in it). For example, the ChangeFontFamilyCommand checks if the parameter is a valid font object or name and changes the font according to the parameter. Here is the code (taken from our source):
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.