FizVizController/FizVizController/Views/FizVizConfig.xaml.cs
/// <summary>
/// Generate and send the display mode to FizViz
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Generate and send the display mode to FizViz
Generate and send the display mode to FizViz
private void LightingModeButton_Click(object sender, RoutedEventArgs e)
        {
            ViewUtility.ResetControlBorders(ControlGrid);
            DisplayMode displayMode;
            switch ((DisplayMode.DisplayModeValue)LightingModeComboBox.SelectedValue)
            {
                case DisplayMode.DisplayModeValue.HotNeedle:
                    {
                        displayMode = GetHotNeedle();
                    }
                    break;
                case DisplayMode.DisplayModeValue.BlockNeedle:
                    {
                        displayMode = GetBlockNeedle();
                    }
                    break;
                case DisplayMode.DisplayModeValue.BackgroundRotate:
                    {
                        displayMode = GetBackgroundRotate();
                    }
                    break;
                case DisplayMode.DisplayModeValue.MinMax:
                    {
                        displayMode = GetMinMax();
                    }
                    break;
                default:
                    return;
            }
            if (displayMode == null) return;
            App.FizViz.SendCommand(displayMode);
        }
private void LightingModeButton_Click ( object sender , RoutedEventArgs e ) { ViewUtility . ResetControlBorders ( ControlGrid ) ; DisplayMode displayMode ; switch ( ( DisplayMode . DisplayModeValue ) LightingModeComboBox . SelectedValue ) { case DisplayMode . DisplayModeValue . HotNeedle : { displayMode = GetHotNeedle ( ) ; } break ; case DisplayMode . DisplayModeValue . BlockNeedle : { displayMode = GetBlockNeedle ( ) ; } break ; case DisplayMode . DisplayModeValue . BackgroundRotate : { displayMode = GetBackgroundRotate ( ) ; } break ; case DisplayMode . DisplayModeValue . MinMax : { displayMode = GetMinMax ( ) ; } break ; default : return ; } if ( displayMode == null ) return ; App . FizViz . SendCommand ( displayMode ) ; }
Generate and send the display mode to FizViz
Generate and send the display mode to FizViz
sender
object
None
e
RoutedEventArgs
None