private void DlgImport_Load(object sender, EventArgs e) { db = new DB(this); try { newDevelopersTable = db.getNewDevelopers(fileName); dataGridView1.DataSource = newDevelopersTable; } catch (Exception ex) { MessageBox.Show(ex.Message); Close(); } }
private void fillGrid() { db = new DB(); try { chkImport.Checked = true; newDevelopersTable = db.getNewDevelopers(wizard); dataGridView1.DataSource = newDevelopersTable; } catch (Exception ex) { MessageBox.Show(ex.Message); Close(); } }