private void ShowUSDTable() { if (_usd != null) { DataTableWnd dtw = new DataTableWnd(_usd, "Primary Sites Dataset [" + _usd.TableName + "]"); dtw.ShowDialog(this); dtw.Dispose(); dtw = null; } }
private void OpenXMLFile() { openDlg.Filter = "XML Files|*.XML"; openDlg.ShowDialog(this); string filename = openDlg.FileName; if (filename == "") { return; } DataSet ds = new DataSet(); ds.ReadXml(filename); DataTableWnd dtw = new DataTableWnd(ds); dtw.ShowAsMDIChild(this); }