Пример #1
0
        private void LoadExcelReportsButton_Click(object sender, EventArgs e)
        {
            DirectoryInfo root = new DirectoryInfo(ExtractedFilePath);

            if (root.GetDirectories().Length == 0)
            {
                ZipFile.ExtractToDirectory(PathOfZip, ExtractedFilePath);
            }

            ExcelImporter.ImportReports(root, new SqlServerDb());
            MessageBox.Show(ExcelReportsLoadedSuccessfully, string.Empty, MessageBoxButtons.OK);
        }