示例#1
0
        private void btnPowerOn_Click(object sender, EventArgs e)
        {
            TSenderParam param = new TSenderParam();

            GetDeviceParam(ref param.devParam);
            param.notifyMode = LEDSender.NOTIFY_EVENT;
            param.wmHandle   = (UInt32)Handle;
            param.wmMessage  = (UInt32)WM_LED_NOTIFY;
            LEDSender.Do_LED_SetPower(ref param, 1);
        }
示例#2
0
        private void PowerON_Load(object sender, EventArgs e)
        {
            LEDSender2.Do_LED_Startup();
            TSenderParam param = new TSenderParam();

            GetDeviceParam(ref param.devParam);
            param.notifyMode = LEDSender2.NOTIFY_EVENT;
            param.wmHandle   = (UInt32)Handle;
            LEDSender2.Do_LED_SetPower(ref param, 1);
            i = 1;
        }