public void Import(string fileName) { if (ShareListDlg <ReportSpecList, ReportSpec> .ImportFile(this, Settings.Default.ReportSpecList, fileName)) { LoadList(); } }
public void ShowShare() { CheckDisposed(); using (var dlg = new ShareListDlg <ReportSpecList, ReportSpec>(Settings.Default.ReportSpecList) { Label = Resources.ExportReportDlg_ShowShare_Report_Definitions, Filter = TextUtil.FileDialogFilterAll(Resources.ExportReportDlg_ShowShare_Skyline_Reports, ReportSpecList.EXT_REPORTS) }) { dlg.ShowDialog(this); } }
private void btnImport_Click(object sender, EventArgs e) { Import(ShareListDlg <ReportSpecList, ReportSpec> .GetImportFileName(this, TextUtil.FileDialogFilterAll(Resources.ExportReportDlg_ShowShare_Skyline_Reports, ReportSpecList.EXT_REPORTS))); }