private void addEventHandler(Type actionType) { EventPath ep = this.Parent as EventPath; if (ep != null) { ClassPointer root = ep.Panes.Loader.GetRootId(); root.AddEventhandlerMethod(actionType, this.Event, 0, this.Bounds, this.FindForm()); } }