SetSettings() публичный статический Метод

public static SetSettings ( IProject project, JLinkSettings settings ) : void
project IProject
settings JLinkSettings
Результат void
        private void Save()
        {
            if (hasLoaded)
            {
                settings.Interface    = (JlinkInterfaceType)interfaceSelectedIndex;
                settings.DeviceKey    = selectedDevice?.Device;
                settings.TargetDevice = selectedDevice?.Device.Split(' ')[0].Trim();

                JLinkDebugAdaptor.SetSettings(Model, settings);
                Model.Save();
            }
        }
Пример #2
0
        private void Save()
        {
            if (hasLoaded)
            {
                settings.Interface    = (JlinkInterfaceType)interfaceSelectedIndex;
                settings.DeviceKey    = selectedDevice?.Device;
                settings.TargetDevice = selectedDevice?.Device.Split(' ')[0].Trim();

                if (!string.IsNullOrEmpty(speed))
                {
                    settings.SpeedkHz = Convert.ToInt32(speed);
                }
                else
                {
                    settings.SpeedkHz = 12000;
                }

                JLinkDebugAdaptor.SetSettings(Model, settings);
                Model.Save();
            }
        }