コード例 #1
0
		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;
		}
コード例 #2
0
        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;
        }