Exemplo n.º 1
0
        /*
         * This function is called when the device status changes
         * most of this is for display purposes only,
         * the real business logic should be held in the app class
         */
        void DeviceStatusEvent(ePIStatus status, String Command)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(delegate() { DeviceStatusEvent(status, Command); }));
            }
            else
            {
                switch (status)
                {
                case ePIStatus.eConnected:
                    SetButtonStatuses();
                    DebugLogger.Instance().LogRecord("Device Connected");
                    break;

                case ePIStatus.eDisconnected:
                    SetButtonStatuses();
                    DebugLogger.Instance().LogRecord("Device Disconnected");
                    break;

                case ePIStatus.eError:
                    break;
                    //case ePIStatus.eReady:
                    //   break;
                }
            }
        }
Exemplo n.º 2
0
        /*
         * This function is called when the device status changes
         * most of this is for display purposes only,
         * the real business logic should be held in the app class
         */
        void DeviceStatusEvent(ePIStatus status, String Command)
        {
            switch (status)
            {
            case ePIStatus.eConnected:
                SetConnectionStatus();
                DebugLogger.Instance().LogRecord("Device Connected");
                break;

            case ePIStatus.eDisconnected:
                SetConnectionStatus();
                DebugLogger.Instance().LogRecord("Device Disconnected");
                break;

            case ePIStatus.eError:
                break;

            case ePIStatus.eReady:
                break;

            case ePIStatus.eTimedout:
                break;
            }
        }
 /*
  This function is called when the device status changes
  * most of this is for display purposes only,
  * the real business logic should be held in the app class
  */
 void DeviceStatusEvent(ePIStatus status, String Command)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new MethodInvoker(delegate() { DeviceStatusEvent(status, Command); }));
     }
     else
     {
         switch (status)
         {
             case ePIStatus.eConnected:
                 SetButtonStatuses();
                 DebugLogger.Instance().LogRecord("Device Connected");
                 break;
             case ePIStatus.eDisconnected:
                 SetButtonStatuses();
                 DebugLogger.Instance().LogRecord("Device Disconnected");
                 break;
             case ePIStatus.eError:
                 break;
             case ePIStatus.eReady:
                 break;
         }
     }
 }
Exemplo n.º 4
0
 /*
  This function is called when the device status changes
  * most of this is for display purposes only,
  * the real business logic should be held in the app class
  */
 void DeviceStatusEvent(ePIStatus status, String Command)
 {
     switch (status)
     {
         case ePIStatus.eConnected:
             SetButtonStatuses();
             DebugLogger.Instance().LogRecord("Device Connected");
             break;
         case ePIStatus.eDisconnected:
             SetButtonStatuses();
             DebugLogger.Instance().LogRecord("Device Disconnected");
             break;
         case ePIStatus.eError:
             break;
         case ePIStatus.eReady:
             break;
         case ePIStatus.eTimedout:
             break;
     }
 }
Exemplo n.º 5
0
        /*
         This function is called when the device status changes
         * most of this is for display purposes only,
         * the real business logic should be held in the app class
         */
        void DeviceStatusEvent(ePIStatus status, String Command)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(delegate() { DeviceStatusEvent(status, Command); }));
            }
            else
            {
                switch (status)
                {
                    case ePIStatus.eConnected:
                        SetButtonStatuses();
                        DebugLogger.Instance().LogRecord("Device Connected");
                        break;
                    case ePIStatus.eDisconnected:
                        SetButtonStatuses();
                        DebugLogger.Instance().LogRecord("Device Disconnected");
                        break;
                    case ePIStatus.eError:
                        break;
                    case ePIStatus.eReady:
                        break;
                    case ePIStatus.eTimedout:
                        break;
                    case ePIStatus.eTemperatureData:
                        //set the control
                        heatTempCtl1.SetHBPTemp(UVDLPApp.Instance().m_deviceinterface.HBP_Temp);
                        heatTempCtl1.SetEXT0Temp(UVDLPApp.Instance().m_deviceinterface.Ext0_Temp);

                        break;
                }
            }
        }