private void mi_createEventFireMethod(object sender, EventArgs e) { EventPath ep = this.Parent as EventPath; if (ep != null) { ClassPointer root = ep.Panes.Loader.GetRootId(); EventClass ec = this.CustomEvent; if (ec.ClassId == root.ClassId) { root.CreateFireEventAction(ec, ep.Panes.Loader.Writer, null, ep.FindForm()); } } }