예제 #1
0
        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");
            }
        }
예제 #2
0
        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");
            }
        }
예제 #3
0
        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();
        }