FizVizController/FizVizController/Views/ManualControl.xaml.cs
/// <summary>
/// Generate and send a manual needle position command to FizViz
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Generate and send a manual needle position command to FizViz
Generate and send a manual needle position command to FizViz
private void NeedlePositionButton_Click(object sender, RoutedEventArgs e)
        {
            ViewUtility.ResetControlBorders(ControlGrid);
            ushort? position = ViewUtility.GetUShort(NeedlePositionTextBox);
            if (!position.HasValue) return;
            NeedlePosition positionCommand = new NeedlePosition
            {
                Position = position.Value,
                Direction = (NeedlePosition.NeedleDirectionValue)NeedleDirectionComboBox.SelectedValue
            };
            App.FizViz.SendCommand(positionCommand);
        }
private void NeedlePositionButton_Click ( object sender , RoutedEventArgs e ) { ViewUtility . ResetControlBorders ( ControlGrid ) ; ushort ? position = ViewUtility . GetUShort ( NeedlePositionTextBox ) ; if ( ! position . HasValue ) return ; NeedlePosition positionCommand = new NeedlePosition { Position = position . Value , Direction = ( NeedlePosition . NeedleDirectionValue ) NeedleDirectionComboBox . SelectedValue } ; App . FizViz . SendCommand ( positionCommand ) ; }
Generate and send a manual needle position command to FizViz
Generate and send a manual needle position command to FizViz
sender
object
None
e
RoutedEventArgs
None