Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string   str          = System.AppDomain.CurrentDomain.BaseDirectory;
            FileInfo file         = new FileInfo("McuConfiglist.xlsx");
            string   FileFullPath = file.FullName.ToString();

            dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;


            jo = JsonManager.OpenFile(".\\mcu\\mcusFeaturesAndDescription.json");
            string jstr = JsonManager.Serialize(jo);

            JsonManager.Save(jo, ".\\mcu\\mcusFeaturesAndDescription1.json");

            dt = JsonManager.toDataTable(jstr);
            dataGridView1.DataSource = dt;
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                comboBox1.Items.Add(dt.Rows[i][0]);
            }
        }