FizVizController/FizVizController/Views/FizVizConfig.xaml.cs
/// <summary>
/// Update which parameters are visible based on which mode is selected and on whether we are in highlight mode
/// </summary>
Update which parameters are visible based on which mode is selected and on whether we are in highlight mode
Update which parameters are visible based on which mode is selected and on whether we are in highlight mode
private void SetParametersDisplayed()
        {
            bool useHighlight = UseHighlight.IsChecked.HasValue && UseHighlight.IsChecked.Value;
            DisplayMode.DisplayModeValue displayMode = (DisplayMode.DisplayModeValue) LightingModeComboBox.SelectedValue;
            BrightHoldLabel.Visibility = displayMode == DisplayMode.DisplayModeValue.BlockNeedle ? Visibility.Visible : Visibility.Collapsed;
            BrightHoldTextBox.Visibility = displayMode == DisplayMode.DisplayModeValue.BlockNeedle ? Visibility.Visible : Visibility.Collapsed;
            PixelOffsetLabel.Visibility = displayMode == DisplayMode.DisplayModeValue.BackgroundRotate
                ? Visibility.Visible
                : Visibility.Collapsed;
            PixelOffsetTextBox.Visibility = displayMode == DisplayMode.DisplayModeValue.BackgroundRotate
                ? Visibility.Visible
                : Visibility.Collapsed;
            if (displayMode == DisplayMode.DisplayModeValue.HotNeedle ||
                displayMode == DisplayMode.DisplayModeValue.BlockNeedle)
            {
                HighlightMultiplierLabel.Visibility = useHighlight ? Visibility.Visible : Visibility.Collapsed;
                HighlightMultiplierTextBox.Visibility = useHighlight ? Visibility.Visible : Visibility.Collapsed;
                HotColorLabel.Visibility = useHighlight ? Visibility.Collapsed : Visibility.Visible;
                HotColorComboBox.Visibility = useHighlight ? Visibility.Collapsed : Visibility.Visible;
                UseHighlightLabel.Visibility = Visibility.Visible;
                UseHighlight.Visibility = Visibility.Visible;
            }
            else
            {
                HighlightMultiplierLabel.Visibility = Visibility.Collapsed;
                HighlightMultiplierTextBox.Visibility = Visibility.Collapsed;
                HotColorLabel.Visibility = displayMode == DisplayMode.DisplayModeValue.MinMax ? Visibility.Visible : Visibility.Collapsed;
                HotColorComboBox.Visibility = displayMode == DisplayMode.DisplayModeValue.MinMax ? Visibility.Visible : Visibility.Collapsed;
                UseHighlightLabel.Visibility = Visibility.Collapsed;
                UseHighlight.Visibility = Visibility.Collapsed;
            }
            FadeDurationLabel.Visibility = displayMode == DisplayMode.DisplayModeValue.BackgroundRotate
                ? Visibility.Collapsed
                : Visibility.Visible;
            FadeDurationTextBox.Visibility = displayMode == DisplayMode.DisplayModeValue.BackgroundRotate
                ? Visibility.Collapsed
                : Visibility.Visible;
            FadeDurationLabel.Text = displayMode == DisplayMode.DisplayModeValue.MinMax ? "Min Max Reset (s)" : "Fade Duration (ms)";
        }
private void SetParametersDisplayed ( ) { bool useHighlight = UseHighlight . IsChecked . HasValue && UseHighlight . IsChecked . Value ; DisplayMode . DisplayModeValue displayMode = ( DisplayMode . DisplayModeValue ) LightingModeComboBox . SelectedValue ; BrightHoldLabel . Visibility = displayMode == DisplayMode . DisplayModeValue . BlockNeedle ? Visibility . Visible : Visibility . Collapsed ; BrightHoldTextBox . Visibility = displayMode == DisplayMode . DisplayModeValue . BlockNeedle ? Visibility . Visible : Visibility . Collapsed ; PixelOffsetLabel . Visibility = displayMode == DisplayMode . DisplayModeValue . BackgroundRotate ? Visibility . Visible : Visibility . Collapsed ; PixelOffsetTextBox . Visibility = displayMode == DisplayMode . DisplayModeValue . BackgroundRotate ? Visibility . Visible : Visibility . Collapsed ; if ( displayMode == DisplayMode . DisplayModeValue . HotNeedle || displayMode == DisplayMode . DisplayModeValue . BlockNeedle ) { HighlightMultiplierLabel . Visibility = useHighlight ? Visibility . Visible : Visibility . Collapsed ; HighlightMultiplierTextBox . Visibility = useHighlight ? Visibility . Visible : Visibility . Collapsed ; HotColorLabel . Visibility = useHighlight ? Visibility . Collapsed : Visibility . Visible ; HotColorComboBox . Visibility = useHighlight ? Visibility . Collapsed : Visibility . Visible ; UseHighlightLabel . Visibility = Visibility . Visible ; UseHighlight . Visibility = Visibility . Visible ; } else { HighlightMultiplierLabel . Visibility = Visibility . Collapsed ; HighlightMultiplierTextBox . Visibility = Visibility . Collapsed ; HotColorLabel . Visibility = displayMode == DisplayMode . DisplayModeValue . MinMax ? Visibility . Visible : Visibility . Collapsed ; HotColorComboBox . Visibility = displayMode == DisplayMode . DisplayModeValue . MinMax ? Visibility . Visible : Visibility . Collapsed ; UseHighlightLabel . Visibility = Visibility . Collapsed ; UseHighlight . Visibility = Visibility . Collapsed ; } FadeDurationLabel . Visibility = displayMode == DisplayMode . DisplayModeValue . BackgroundRotate ? Visibility . Collapsed : Visibility . Visible ; FadeDurationTextBox . Visibility = displayMode == DisplayMode . DisplayModeValue . BackgroundRotate ? Visibility . Collapsed : Visibility . Visible ; FadeDurationLabel . Text = displayMode == DisplayMode . DisplayModeValue . MinMax ? " " : " " ; }
Update which parameters are visible based on which mode is selected and on whether we are in highlight mode
Update which parameters are visible based on which mode is selected and on whether we are in highlight mode