public static void FromFileNames(Form mdiParent, string[] filenames) { foreach (string fname in filenames) { try { DataTableBindForm viewer = new DataTableBindForm(fname); viewer.MdiParent = mdiParent; viewer.Show(); } catch (Exception ex) { throw new Exception("Error trying to load files.", ex); } } }
private void btDetailed_Click(object sender, EventArgs e) { DataTable dt = RowResultsToDatatable(_results); DataTableBindForm frm = new DataTableBindForm(dt); frm.MdiParent = MdiParent; frm.Show(); }
private void btDetailed_Click(object sender, EventArgs e) { try { DataTable dt = RowResultsToDatatable(_results, false); DataTableBindForm frm = new DataTableBindForm(dt); frm.MdiParent = MdiParent; frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.GetType().FullName, ex.Message); } }