コード例 #1
0
        //Event handlers
        void DeviceHandler_Events(object sender, Chg4NDeviceEventArgs e)
        {
            switch (e.EventType)
            {
            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Name:
                SetNameFb(e.StringValue);
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Group:
                SetGroupFb(e.StringValue);
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Version:
                SetVersionFb(e.StringValue);
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Serial:
                SetSerialFb(e.StringValue);
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Product:
                SetProductFb(e.StringValue);
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.MacAddresses:
                SetMacAddressesFb(e.StringValue);
                break;
            }
        }
コード例 #2
0
        void ChargerDeviceHandler_Events(object sender, Chg4NDeviceEventArgs e)
        {
            switch (e.EventType)
            {
            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Name:
                _xpanel.StringInput[1].StringValue = e.StringValue;
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Group:
                _xpanel.StringInput[2].StringValue = e.StringValue;
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Version:
                _xpanel.StringInput[5].StringValue = e.StringValue;
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Serial:
                _xpanel.StringInput[4].StringValue = e.StringValue;
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.Product:
                _xpanel.StringInput[3].StringValue = e.StringValue;
                break;

            case Chg4NDeviceEventArgs.eChg4NDeviceEventType.MacAddresses:
                _xpanel.StringInput[6].StringValue = e.StringValue;
                break;
            }
        }
コード例 #3
0
 void ChargerDeviceHandler_Events(object sender, Chg4NDeviceEventArgs e)
 {
     CrestronConsole.PrintLine(e.ToString());
 }