m_EventHandler = new EventHandler("Eplan.EplApi.OnMainEnd"); m_EventHandler.EplanEvent += delegate { new Decider().Decide(EnumDecisionType.eOkDecision, "On main end was called!", "OnMainEnd", EnumDecisionReturn.eOK, EnumDecisionReturn.eOK); };