public MainWindow() { InitializeComponent(); SetDockPanelStateEnabled(false); RobotControl = new RobotControl(); RobotControl.SimulationStateChanged += RobotControl_SimulationStateChanged; ComboBoxRobotType.Items.Add(R.Localhost); ComboBoxRobotType.Items.Add(R.TestRobotIP_001); ComboBoxRobotType.SelectedIndex = 0; TextBoxRobotSpeed.Text = SliderRobotSpeed.Value.ToString(); UpdateRobotControlPanel(); }
public MainWindow() { InitializeComponent(); SetDockPanelStateEnabled(false); RobotControl = new RobotControl(); RobotControl.SimulationStateChanged += RobotControl_SimulationStateChanged; ComboBoxRobotType.Items.Add(R.Localhost); ComboBoxRobotType.Items.Add(R.TestRobotIP_001); ComboBoxRobotType.SelectedIndex = 0; SliderRobotSpeed.Value = DefaultRobotSpeed; TextBoxRobotSpeed.Text = SliderRobotSpeed.Value.ToString(CultureInfo.InvariantCulture); UpdateRobotControlPanel(); }