private void btn_load_Click(object sender, EventArgs e) { file.Filter = "CSV|*.csv"; List <Patient> patients = new List <Patient>(); if (file.ShowDialog() == DialogResult.OK) { textBoxLoad1.Text = file.FileName; string path = file.FileName; textBoxLoad2.Text = file.SafeFileName; MessageBox.Show("Datos cargados correctamente."); patients = controller.loadGrid(path); Console.WriteLine(patients.Count); loadGrid(patients); } }
private void btn_load_Click(object sender, EventArgs e) { file.Filter = "CSV|*.csv"; List <Patient> patients = new List <Patient>(); if (file.ShowDialog() == DialogResult.OK) { textBoxLoad1.Text = file.FileName; string path = file.FileName; textBoxLoad2.Text = file.SafeFileName; MessageBox.Show("Data loaded succesfully."); controller.loadGrid(path); patients = controller.patient(); Console.WriteLine(patients.Count); gridPatiens.loadGrid(patients); filterOptions.cb_filterSetVisible(true); enableButtons(true); gridPatiens.enableExport(); } }