Пример #1
0
        public frmTerminal()
        {
            // Load user settings
            settings.Reload();

            // Build the form
            InitializeComponent();

            // Restore the users settings
            InitializeControlValues();

            // Enable/disable controls based on the current state
            EnableControls();

            m_util       = new Util();
            heads_up     = new hud(this);
            xbee_service = new Xbee_service();


            // show the hud
            heads_up.Show();

            // When data is recieved through the port, call this method
            comport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
            comport.PinChanged   += new SerialPinChangedEventHandler(comport_PinChanged);
        }
Пример #2
0
        public frmTerminal()
        {
            // Load user settings
            settings.Reload();

            // Build the form
            InitializeComponent();

            // Restore the users settings
            InitializeControlValues();

            // Enable/disable controls based on the current state
            EnableControls();

            m_util = new Util();
            heads_up = new hud(this);
            xbee_service = new Xbee_service();


            // show the hud
            heads_up.Show();

            // When data is recieved through the port, call this method
            comport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
            comport.PinChanged += new SerialPinChangedEventHandler(comport_PinChanged);
        }