Ejemplo n.º 1
0
        private void Form_Settings_Load(object sender, EventArgs e)
        {
            string filename = "Settings.json";

            if (File.Exists(filename))
            {
                //string[] portSettings = readJson(filename);
                HashPass.AppSettings pSettings = HashPass.readSettingsJson(filename);
                comboBox_Ports.Text    = pSettings.Port;
                comboBox_Baudrate.Text = pSettings.Baudrate;
                comboBox_DataBits.Text = pSettings.DataBits;
                comboBox_Parity.Text   = pSettings.Parity;
                if (pSettings.clinicalTerminals == "1")
                {
                    checkBox_clinicalTerminals.Checked = true;
                }
                else
                {
                    checkBox_clinicalTerminals.Checked = false;
                }
            }
        }