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; } }
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; } }