/// <summary> /// Updates the enabled state of the start button. /// Requires all devices to be selected and a unique name for an enabled button. /// </summary> private void UpdateStartButton() { if (workerThread.GetCameras().Keys.Count >= 2 && workerThread.GetOutputAudioDevice() != null && workerThread.GetInputAudioDevice() != null && roomNameTextBox.Text.Trim().Length > 0 && !Configuration.GetInstance().Rooms.ContainsKey(roomNameTextBox.Text)) { startCalibrationButton.IsEnabled = true; } else { startCalibrationButton.IsEnabled = false; } }