public void Show(InputPort port, DeviceType deviceType, MotorMovementTypes movementType, int degreeMovement, int powerRatingMovement, int timeToMoveInSeconds) { PortName.Text = port.ToString(); ObjectName.Text = deviceType.ToString(); MovementStyle.SelectedIndex = (int) movementType; DegreeSlider.Value = degreeMovement; PowerTimerSlider.Value = timeToMoveInSeconds; PowerSlider.Value = powerRatingMovement; Visibility = Visibility.Visible; }
public void Show(InputPort port, DeviceType deviceType, MotorMovementTypes movementType, int degreeMovement, int powerRatingMovement, int timeToMoveInSeconds) { PortName.Text = port.ToString(); ObjectName.Text = deviceType.ToString(); MovementStyle.SelectedIndex = (int)movementType; DegreeSlider.Value = degreeMovement; PowerTimerSlider.Value = timeToMoveInSeconds; PowerSlider.Value = powerRatingMovement; Visibility = Visibility.Visible; }