Ejemplo n.º 1
0
        void SensorSettings_SaveSettings(object sender, SensorSettingsEventArgs e)
        {
            if (_selectedSensorControl == null)
            {
                return;
            }

            SensorSettings.SaveSettings -= SensorSettings_SaveSettings;

            _brick.Ports[_selectedSensorControl.BrickInputPort].SetMode(e.SensorMode);
            _selectedSensorControl.UpdateUx();

            _selectedSensorControl = null;
        }
Ejemplo n.º 2
0
        private void SensorSettingClicked(object sender, RoutedEventArgs routedEventArgs)
        {
            var control = sender as SensorDataControl;

            if (control != null)
            {
                SensorSettings.SaveSettings += SensorSettings_SaveSettings;

                _selectedSensorControl = control;

                SensorSettings.Show(
                    control.BrickInputPort,
                    _brick.Ports[control.BrickInputPort].Type,
                    _brick.Ports[control.BrickInputPort].Mode);
            }
        }
Ejemplo n.º 3
0
		void SensorSettings_SaveSettings(object sender, SensorSettingsEventArgs e)
		{
			if (_selectedSensorControl == null)
				return;

			SensorSettings.SaveSettings -= SensorSettings_SaveSettings;

			_brick.Ports[_selectedSensorControl.BrickInputPort].SetMode(e.SensorMode);
			_selectedSensorControl.UpdateUx();

			_selectedSensorControl = null;
		}
Ejemplo n.º 4
0
		private void SensorSettingClicked(object sender, RoutedEventArgs routedEventArgs)
		{
			var control = sender as SensorDataControl;

			if (control != null)
			{
				SensorSettings.SaveSettings += SensorSettings_SaveSettings;

				_selectedSensorControl = control;

				SensorSettings.Show(
					control.BrickInputPort,
					_brick.Ports[control.BrickInputPort].Type,
					_brick.Ports[control.BrickInputPort].Mode);
			}
		}