private void PeripheralCtrl_Closed(object sender, EventArgs e)
        {
            UInt16 LastErrCode;

            LastErrCode = PeripheralCtrl_API.PeripheralCtrl_Deinitialize();
            if (LastErrCode != IMC_ERR_NO_ERROR)
            {
                MessageBox.Show("Fails to clear up the peripheral control library");
                return;
            }
        }
示例#2
0
        private void RearViewForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            SetRearViewSource(PeripheralCtrl_API.REAR_VIEW_SRC_SYSTEM);

            UInt16 LastErrCode;

            LastErrCode = PeripheralCtrl_API.PeripheralCtrl_Deinitialize();
            if (LastErrCode != IMC_ERR_NO_ERROR)
            {
                MessageBox.Show("Fails to clear up the peripheral control library");
                return;
            }
        }