private void sqliteToolStripMenuItem_Click(object sender, EventArgs e) { FormSave formSave = new FormSave("SQLite", dockTableList.getTableList(), useAPI, parseRecord, recoveryRecord); DialogResult dialogResut = formSave.ShowDialog(); if (dialogResut == DialogResult.OK) { MessageBox.Show("Finish saving the file"); } }
private void cSVToolStripMenuItem_Click(object sender, EventArgs e) { FormSave formSave = new FormSave("CSV", dockTableList.getTableList(), useAPI, parseRecord, recoveryRecord); formSave.FormSaveSetData(esentManager, edbParserManager); DialogResult dialogResut = formSave.ShowDialog(); if (dialogResut == DialogResult.OK) { MessageBox.Show("Finish saving the file"); } }
public void saveData(FormSave formSave, String tableName, List <ColumnInformation> columnInformationList) { isSaveData = true; isReadData = false; this.formSave = formSave; backgroudWoker = new BackgroundWorker(); backgroudWoker.DoWork += new DoWorkEventHandler(readRecordsDoWork); backgroudWoker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(saveRunWorkerCompletedEventHandler); backgroudWoker.WorkerSupportsCancellation = true; var tableData = new Tuple <String, List <ColumnInformation> >(tableName, columnInformationList); formWait = new FormWait(); formWait.FormClosing += new FormClosingEventHandler(waitFormClosingEventHandler); backgroudWoker.RunWorkerAsync(tableData); formWait.ShowDialog(); }