Dear Rhino developers,
I have followed example of eto panel from here, and but I have shifted my checkboxes and numericsteppers definition outside “SampleCsEtoPanel” method. User action events are defined inside “SampleCsEtoPanel”, as in example.
It works fine when my controls are not public and not static. To reference some specific logic, I needed to make some of them public and static (which may be already bad design by me…). Those specific controls works fine until I will close panel and open it again - it results in multiple triggering of public static controls. Each opening of my panel results in additional trigger of control when user makes some action with it.
1.) Besides making those controls not public and not static, is there some other solution that could make it work correctly without multitple triggering?
2.) Is it allowed to make eto panel controls public and static?
BR
Łukasz