예제 #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;
        }
예제 #2
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;
		}