Hi furesoft,
It looks like you might want something like this:
Keep in mind that ClearScript lets you set up event handlers directly from script code:
Good luck!
It looks like you might want something like this:
publicvoid AddEventHandler(string name, dynamic handler) { var evt = f.GetType().GetEvent(name); var action = new Action<object, object>((sender, args) => handler(sender, args)); evt.AddEventHandler(f, Delegate.CreateDelegate(evt.EventHandlerType, action.Target, action.Method)); }
form.Activated.connect(function (sender, args) { // do something });