Custom Eto Control inside a global class

Hello

I Have test a custom Eto Panel inside a global class

public class EtoHelper
{
    // ... static methods ...
    [System.Runtime.InteropServices.Guid("9A5396ED-C99B-42C6-8712-F288AF470947")]
    public class RhPanel : Panel, System.Windows.Forms.IWin32Window
    {
        public RhPanel() { /*....*/ }
    }
}

and I have an error: “need a constructor with uint, Rhino or no parameters”
but if I remove the static method and change the global class by a namespace all is ok.

namespace EtoHelper
{
    [System.Runtime.InteropServices.Guid("9A5396ED-C99B-42C6-8712-F288AF470947")]
    public class RhPanel : Panel, System.Windows.Forms.IWin32Window
    {
        public RhPanel() { /*....*/ }
    }
}

Is this normal?
my code take the template of @dale : https://github.com/dalefugier/SampleCsEto/blob/master/Views/SampleCsEtoPanel.cs

HI @kitjmv,

You are referencing a pretty old sample (that I wrote for Rhino 5). Please review the Rhino 6 samples found in our GitHub repo.

https://github.com/mcneel/rhino-developer-samples

https://github.com/mcneel/rhino-developer-samples/tree/6/rhinocommon/cs/SampleCsEto

– Dale

ok merci Dale !