Example #1
0
        private void SettingsFrm_Load(object sender, System.EventArgs e)
        {
            var ports = new List <string>()
            {
                "AUTO"
            };

            ports.AddRange(HardwareLibrary.GetComPorts);
            comboBoxPort.Items.AddRange(ports.ToArray());
            comboBoxPort.SelectedItem = ports.Where(x => x == newConfig.Port).FirstOrDefault();

            var languages = Localizator.GetAvaliableLanguages();

            comboBoxLanguage.Items.AddRange(languages.ToArray());
            comboBoxLanguage.SelectedItem = languages.Where(x => x == newConfig.Locale).FirstOrDefault();

            checkBoxLog.Checked = newConfig.LogEnable;
        }