// ********************************************************************* // Function: MainForm // /// \brief Constructor generated by form designer plus initialization /// of the device object and of controls to their proper state. // ********************************************************************** public MainForm() { InitializeComponent(); mDevice = new LeddarNET.Device(); mDevice.ParentControl = this; UpdateControls(); }
MainFormFormClosing(object sender, FormClosingEventArgs e) { mDevice.Disconnect(); mDevice = null; }