Exemplo n.º 1
0
        /// <summary>
        /// This is the main form that we will use in a windows based environment. It also sets the default selections for the dropdown/combo boxes
        /// </summary>
        public MainForm()
        {
            //init components
            ETDevice = new ETController();
            calibrateET = new ETCalibrate();
            screenVideo = new CustomScreenCapture();
            updatePoints = true;
            serverListenerEnabled = true;
            recordData = false;
            dataPoints = new ETSampleManager(ETDevice);
            dataPoints.startDataFeedback();
            dataSampleRate = 5;
            //init ui components (auto generated)
            InitializeComponent();

            //setup the default combobox selections
            callibrationPointComboBox.SelectedIndex = 2;
            targetShapeComboBox.SelectedIndex = 0;
            dataExportComboBox.SelectedIndex = 0;
            dataSampleRateComboBox.SelectedIndex = 2;

            Thread serverListener = new Thread(new ThreadStart(startServerListener));
            serverListener.Name = "Server Listener Thread";
            serverListener.Start();

            //setup Escape key to exit ET mouse control
            RegisterHotKey(this.Handle, this.GetHashCode(), 0, (int) Keys.Escape);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This is the main form that we will use in a windows based environment. It also sets the default selections for the dropdown/combo boxes
        /// </summary>
        public MainForm()
        {
            //init components
            ETDevice              = new ETController();
            calibrateET           = new ETCalibrate();
            screenVideo           = new CustomScreenCapture();
            updatePoints          = true;
            serverListenerEnabled = true;
            recordData            = false;
            dataPoints            = new ETSampleManager(ETDevice);
            dataPoints.startDataFeedback();
            dataSampleRate = 5;
            //init ui components (auto generated)
            InitializeComponent();

            //setup the default combobox selections
            callibrationPointComboBox.SelectedIndex = 2;
            targetShapeComboBox.SelectedIndex       = 0;
            dataExportComboBox.SelectedIndex        = 0;
            dataSampleRateComboBox.SelectedIndex    = 2;


            Thread serverListener = new Thread(new ThreadStart(startServerListener));

            serverListener.Name = "Server Listener Thread";
            serverListener.Start();

            //setup Escape key to exit ET mouse control
            RegisterHotKey(this.Handle, this.GetHashCode(), 0, (int)Keys.Escape);
        }