Esempio n. 1
0
        private void onImportCompleteHandler(ImportResultSet result)
        {
            if (cImportChain.Checked)
            {
                pathsToImport.RemoveAt(0);
                if (pathsToImport.Count() == 0)
                {
                    pathsToImport = null;
                }
                else
                {
                    this.Invoke((MethodInvoker) delegate() {
                        bStartImport_Click(null, null);
                    });
                    return;
                }
            }

            this.UseWaitCursor = false;
            this.Invoke((MethodInvoker) delegate() {
                pbMainProgress.Value = pbMainProgress.Maximum;
                lStatus.Text         = "Status: Complete";
                bStartImport.Enabled = true;
            });

            //results handle
            if (result.wasSuccessful)
            {
                MessageBox.Show("Import completed successfuly!", "SQL Import", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Import completed with errors:\n" + result.errorMessage, "SQL Import", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Esempio n. 2
0
        private void onImportCompleteHandler(ImportResultSet result)
        {
            this.Invoke((MethodInvoker) delegate() {
                pbMainProgress.Value = pbMainProgress.Maximum;
                lStatus.Text         = "Status: Complete";
                bStartImport.Enabled = true;
            });

            //results handle
            if (result.wasSuccessful)
            {
                MessageBox.Show("Import completed successfuly!", "SQL Import", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Import completed with errors:\n" + result.errorMessage, "SQL Import", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Esempio n. 3
0
 private void onImportCompleteHandler(ImportResultSet result)
 {
     Console.WriteLine("Import complete!");
     Console.WriteLine("Result.wasSuccessful = " + result.wasSuccessful);
     Console.WriteLine("Result errormessage = " + result.errorMessage);
 }