public HandlingEquipmentEvent() { // create an instance of SECsHost object hostController = SECsFactory.CreateInstance(); // hook up event sent by the equipment. hostController.SECsPrimaryIn += new Insphere.SecsToTool.Application.SECsBase.SECsPrimaryInEventHandler(hostController_SECsPrimaryIn); // hook up reply/acknowledgement sent by the equipment hostController.SECsSecondaryIn += new Insphere.SecsToTool.Application.SECsBase.SECsSecondaryInEventHandler(hostController_SECsSecondaryIn); // hook up the error messages from the library hostController.SECsHostError += new Insphere.SecsToTool.Application.SECsBase.SECsHostErrorHandler(hostController_SECsHostError); }