Eto Ui designer command Eto/rhino

Hello everyone,

First of all, thank you for your time.
I am learning Eto Ui designer and I would like to know how to create a shortcut button of a command in rhino.
I can’t understand the link between Eto Ui designer and rhino when it comes to creating a command.

Thanks for your help,

Something like this @remydellinger ?

var button = new Button()
{
  Text = "Click Me!",
};
button.Click += (s, e) =>
{
  RhinoApp.RunScript("_<MyComandName>", true);
};