FizVizController/FizVizController/Views/MinMaxConfig.xaml.cs
/// <summary>
/// Generate and send a min max configuration message to FizViz
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Generate and send a min max configuration message to FizViz
Generate and send a min max configuration message to FizViz
private void MinMaxButton_Click(object sender, RoutedEventArgs e)
        {
            ViewUtility.ResetControlBorders(ControlGrid);
            ushort? reset = ViewUtility.GetUShort(ResetTextBox);
            if (!reset.HasValue) return;
            MinMaxCommand command = new MinMaxCommand
            {
                MinColor = (Color)MinColorComboBox.SelectedValue,
                MaxColor = (Color)MaxColorComboBox.SelectedValue,
                DisplayMin = DisplayMin.IsChecked.HasValue && DisplayMin.IsChecked.Value,
                DisplayMax = DisplayMax.IsChecked.HasValue && DisplayMax.IsChecked.Value,
                ResetDelay = reset.Value
            };
            App.FizViz.SendCommand(command);
        }
private void MinMaxButton_Click ( object sender , RoutedEventArgs e ) { ViewUtility . ResetControlBorders ( ControlGrid ) ; ushort ? reset = ViewUtility . GetUShort ( ResetTextBox ) ; if ( ! reset . HasValue ) return ; MinMaxCommand command = new MinMaxCommand { MinColor = ( Color ) MinColorComboBox . SelectedValue , MaxColor = ( Color ) MaxColorComboBox . SelectedValue , DisplayMin = DisplayMin . IsChecked . HasValue && DisplayMin . IsChecked . Value , DisplayMax = DisplayMax . IsChecked . HasValue && DisplayMax . IsChecked . Value , ResetDelay = reset . Value } ; App . FizViz . SendCommand ( command ) ; }
Generate and send a min max configuration message to FizViz
Generate and send a min max configuration message to FizViz
sender
object
None
e
RoutedEventArgs
None