Example #1
0
        // Start an import from the user interface
        protected void ImportStartedFromUI()
        {
            // Get the current import settings from the UI
            ImportSettings importsettings = ImportSettingsFromUI();

            // Initialise the import object
            importdocument = new ImportDocument(importsettings);

            // Set the import control to start a new import
            ImportControl importcontrol = new ImportControl();

            importcontrol.Resume = false;


            // Start a back ground thread that will import the documents into SharePoint whilst the user interface remains responsive.
            bgwImport.RunWorkerAsync(importcontrol);

            // Enable the pause button.
            buttonPauseImport.Enabled = true;
        }
Example #2
0
        // Start an import from the user interface
        protected void ImportStartedFromUI()
        {

            // Get the current import settings from the UI
            ImportSettings importsettings = ImportSettingsFromUI();

            // Initialise the import object
            importdocument = new ImportDocument(importsettings);

            // Set the import control to start a new import
            ImportControl importcontrol = new ImportControl();
            importcontrol.Resume = false;


            // Start a back ground thread that will import the documents into SharePoint whilst the user interface remains responsive.
            bgwImport.RunWorkerAsync(importcontrol);

            // Enable the pause button.
            buttonPauseImport.Enabled = true;

        }