Пример #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;
        }