GetSettings() public static method

public static GetSettings ( IProject project ) : JLinkSettings
project IProject
return JLinkSettings
        public JLinkSettingsFormViewModel(IProject model) : base(model)
        {
            settings = JLinkDebugAdaptor.GetSettings(model);

            //InterfaceOptions = new List<string>(Enum.GetNames(typeof(JlinkInterfaceType)));
            interfaceSelectedIndex = (int)settings.Interface;
            interfaceType          = settings.Interface;

            string devPath = Path.Combine(JLinkDebugAdaptor.BaseDirectory, "devices.csv");

            deviceList = new ObservableCollection <JLinkTargetDeviceViewModel>();

            if (System.IO.File.Exists(devPath))
            {
                LoadDeviceList(devPath);
            }
        }
Exemplo n.º 2
0
        public JLinkSettingsFormViewModel(IProject model) : base(model)
        {
            settings = JLinkDebugAdaptor.GetSettings(model);

            interfaceSelectedIndex = (int)settings.Interface;
            interfaceType          = settings.Interface;

            speedSelectedIndex = SpeedOptions.IndexOf(settings.SpeedkHz.ToString());

            speed = settings.SpeedkHz.ToString();

            string devPath = Path.Combine(JLinkDebugAdaptor.BaseDirectory, "devices.csv");

            deviceList = new ObservableCollection <JLinkTargetDeviceViewModel>();

            if (System.IO.File.Exists(devPath))
            {
                LoadDeviceList(devPath);
            }
        }