Пример #1
0
        public void DriverDeviceStatusEvent(DeviceDriver device, eDeviceStatus status)
        {
            switch (status)
            {
            case eDeviceStatus.eError:
                if (StatusEvent != null)
                {
                    StatusEvent(ePIStatus.eError, "I/O Error");
                }
                break;

            case eDeviceStatus.eConnect:
                if (StatusEvent != null)
                {
                    StatusEvent(ePIStatus.eConnected, "Connected");
                }
                break;

            case eDeviceStatus.eDisconnect:
                if (StatusEvent != null)
                {
                    StatusEvent(ePIStatus.eDisconnected, "Disconnected");
                }
                break;
            }
        }
Пример #2
0
 protected void RaiseDeviceStatus(DeviceDriver device, eDeviceStatus status)
 {
     if (DeviceStatus != null)
     {
         DeviceStatus(device, status);
     }
 }
 protected void RaiseDeviceStatus(DeviceDriver device,eDeviceStatus status)
 {
     if (DeviceStatus != null)
     {
         DeviceStatus(device,status);
     }
 }
        /*
        public void Configure(ConnectionConfig cc,int idx)
        {
            m_lstprojectors[idx].Configure(cc);
        }
         */
        /*
        public void ConfigureProjector(ConnectionConfig cc)
        {
            DriverProjector.Configure(cc);
        }
        */
        public void DriverDeviceStatusEvent(DeviceDriver device, eDeviceStatus status)
        {
            switch (status)
            {
                case eDeviceStatus.eError:
                    if (StatusEvent != null)
                    {
                        StatusEvent(ePIStatus.eError, "I/O Error");
                    }
                    break;
                case eDeviceStatus.eConnect:
                    if (StatusEvent != null)
                    {
                        StatusEvent(ePIStatus.eConnected, "Connected");
                    }
                    break;
                case eDeviceStatus.eDisconnect:
                    if (StatusEvent != null)
                    {
                        StatusEvent(ePIStatus.eDisconnected, "Disconnected");
                    }
                    break;

            }
        }