private void dataPumpToolStripMenuItem_Click(object sender, EventArgs e) { string dlPath = Path.Combine( Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath), "DataPumpDownload"); DirectoryUtils.ClearDir(dlPath, true); IDataPumpProvider dataPumpProvider = DataProvidersFactory.GetDataPumpProvider(); IDataPump dataPump = DataPumpFactory.Get(DataPumpType.Bossa, dataPumpProvider, dlPath); DataPumper dataPumper = new DataPumper(dataPumpProvider, dataPump); FormDataPump frm = new FormDataPump(dataPumper); frm.Execute(); }
public FormDataPump(DataPumper dataPumper) { _dataPumper = dataPumper; InitializeComponent(); }