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