示例#1
0
        private void _framerateMenuItem_Click(object sender, EventArgs e)
        {
            var framerate           = _connectedTracker.GetFrameRate();
            var availableFrameRates = _connectedTracker.EnumerateFrameRates();

            int fpsIndex = availableFrameRates.IndexOf(framerate);

            FrameRateDialog fpsDialog = new FrameRateDialog(availableFrameRates, fpsIndex);

            if (fpsDialog.ShowDialog() == DialogResult.OK)
            {
                _connectedTracker.SetFrameRate(fpsDialog.CurrentFrameRate);
            }
        }
示例#2
0
        private void _framerateMenuItem_Click(object sender, EventArgs e)
        {
            var framerate = _connectedTracker.GetFrameRate();
            var availableFrameRates = _connectedTracker.EnumerateFrameRates();

            int fpsIndex = availableFrameRates.IndexOf(framerate);

            FrameRateDialog fpsDialog = new FrameRateDialog(availableFrameRates,fpsIndex);

            if(fpsDialog.ShowDialog() == DialogResult.OK)
            {
                _connectedTracker.SetFrameRate(fpsDialog.CurrentFrameRate);
            }
        }