コード例 #1
0
        private void btnLiveView_Click( object sender, EventArgs e )
        {
            MappingDialog.Instance.ReadConfigFile();
            LiveDataDisplayForm EF = new LiveDataDisplayForm();
            EF.subscribeToSource( Nexus.Instance );

            EF.Show();
        }
コード例 #2
0
        private void btnLiveView_Click(object sender, EventArgs e)
        {
            MappingDialog.Instance.ReadConfigFile();
            LiveDataDisplayForm EF = new LiveDataDisplayForm();

            EF.subscribeToSource(Nexus.Instance);

            EF.Show();
        }
コード例 #3
0
        private void btnReplay_Click( object sender, EventArgs e )
        {
            OpenFileDialog openDialog = new OpenFileDialog();
            openDialog.Filter = "Sensor Data|*.imu";
            openDialog.Title = "Load sensor replay data";

            DialogResult result = openDialog.ShowDialog();

            if( result == System.Windows.Forms.DialogResult.OK )
            {
                SensorDataPlayer sdp = new SensorDataPlayer();

                ReplayData data = sdp.loadFile( openDialog.FileName );
                LiveDataDisplayForm Replay = new LiveDataDisplayForm(sdp, data.mCalibrationData, data.mSensorBoneMapping);
                BindingList<SensorDataEntry> blist = new BindingList<SensorDataEntry>( data.mDataList );
                dataGridView1.DataSource = blist;
                Replay.Show();
                Replay.begin();
            }
        }
コード例 #4
0
        private void btnReplay_Click(object sender, EventArgs e)
        {
            OpenFileDialog openDialog = new OpenFileDialog();

            openDialog.Filter = "Sensor Data|*.imu";
            openDialog.Title  = "Load sensor replay data";

            DialogResult result = openDialog.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                SensorDataPlayer sdp = new SensorDataPlayer();

                ReplayData                    data   = sdp.loadFile(openDialog.FileName);
                LiveDataDisplayForm           Replay = new LiveDataDisplayForm(sdp, data.mCalibrationData, data.mSensorBoneMapping);
                BindingList <SensorDataEntry> blist  = new BindingList <SensorDataEntry>(data.mDataList);
                dataGridView1.DataSource = blist;
                Replay.Show();
                Replay.begin();
            }
        }