public communicationSystem(Aplicacion v_app, frmInicial v_MainForm , frmInicialCliente v_MainFormCliente) { mainApp = v_app; mainForm = v_MainForm; mainFormCliente = v_MainFormCliente; LOGInformation = new Queue<stringEventArgs>(); socketServerGeneral = new SocketServer(puertos.PORT_TO_SEND, puertos.PORT_TO_RECEIVE, SystemConfiguration.GPSControlIP, SystemConfiguration.GPSControlPort, mainApp); socketServerGeneral.getEmployeeList += new StringEventHandler(addSendEmployeeListJob); socketServerGeneral.getImage += new StringEventHandler(addSendImageJob); socketServerGeneral.actualizeAccess += new byteArrayEventHandler(actualizeAcccess); socketServerGeneral.actualizeVisit += new byteArrayEventHandler(actualizeVisit); socketServerGeneral.actualizeGPSData += new StringEventHandler(actualizeGPS); socketServerGeneral.deleteEmp += new StringEventHandler(borrarEmp); socketServerGeneral.addEmp += new StringEventHandler(agregarEmp); socketServerGeneral.sendEmpxVersion += new byteArrayEventHandler(enviarEmpxVersion); socketServerGeneral.enviarListaImagenes += new byteArrayEventHandler(enviarListaImagenes); socketServerGeneral.enviarVersionImagenes += new StringEventHandler(enviarVersionImagenes); socketServerGeneral.enviarMasImagenes += new StringEventHandler(enviarMasImagenes); socketServerGeneral.enviarDummy+=new StringEventHandler(enviarDummy); socketServerGeneral.actualizarLOG += new StringEventHandler(agregarItemLOG); socketServerGeneral.HHGPSLayer.actualizarLOG += new StringEventHandler(agregarItemLOG); socketServerGeneral.confirmarLOG += new StringEventHandler(confirmarLOG); layerLENEL = new LAYERLenel(mainApp,agregarItemLOG); layerALUTRACK = new LAYERAlutrack(mainApp, agregarItemLOG); communicationLAYER = new LAYERCommunication(mainApp, agregarItemLOG); }
public void Init() { StaticTools.setearAplicacion(this); // formInicial = null; formInicialCliente = new frmInicialCliente(this); formInicial = new frmInicial(this); // formInicialCliente=null; }