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); } }
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); } }