/// <summary> /// Adds the new orders. /// </summary> /// <param name="sender"> The sender. </param> /// <param name="e"> The <see cref="EventArgs" /> instance containing the event data. </param> /// <exception cref="System.NotImplementedException"> Not Implemented </exception> private void AddNewOrders(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "ZIP files (*.zip)|*.zip"; if (openFileDialog.ShowDialog() == DialogResult.OK) { string filePath = openFileDialog.FileName; INinjaFactoryData db = this.DB; string directoryOfExtractedFiles = "UnimportedJobs"; string pattern = string.Empty; ExcelImport.ExtractFile(filePath, directoryOfExtractedFiles); ExcelImport.ProcessExcelFiles(directoryOfExtractedFiles, pattern, db); Directory.Delete(directoryOfExtractedFiles, true); MessageBox.Show("Done"); } }