Esempio n. 1
0
        // *********************************************************************
        // 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();
        }
Esempio n. 2
0
 MainFormFormClosing(object sender, FormClosingEventArgs e)
 {
     mDevice.Disconnect();
     mDevice = null;
 }