Exemplo n.º 1
0
 public WizardStsadmCommand()
 {
     trace = new TraceHelper(this);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initialises this class with settings for an import or export operation.
        /// </summary>
        /// <param name="DeploymentXml">XML containing settings - this should be initially generated by using the 'Save settings' functionality in the UI.</param>
        /// <param name="DeploymentType">The type of operation to perform.</param>
        public WizardDeployment(XmlTextReader DeploymentXml, DeploymentType DeploymentType)
        {
            trace = new TraceHelper(this);
            Type = DeploymentType;

            if (DeploymentType == DeploymentType.Export)
            {
                WizardExportSettings weSettings = CollectExportSettings(DeploymentXml);
                ExportSettings = (SPExportSettings) weSettings.Settings;
            }
            if (DeploymentType == DeploymentType.Import)
            {
                WizardImportSettings wiSettings = CollectImportSettings(DeploymentXml);
                ImportSettings = (SPImportSettings) wiSettings.Settings;
            }
        }
Exemplo n.º 3
0
 public WizardStsadmCommand()
 {
     trace = new TraceHelper(this);
 }
Exemplo n.º 4
0
        public frmContentDeployer()
        {
            f_traceSwitch = new TraceSwitch("COB.SharePoint.Utilities.ContentDeploymentWizard",
                "Trace switch for ContentDeploymentWizard");

            // initialise the trace helper for output formatting
            f_traceHelper = new TraceHelper(this);

            if (f_traceSwitch.TraceVerbose)
            {
                f_traceHelper.TraceVerbose("frmContentDeployer: Entered frmContentDeployer().");
            }

            InitializeComponent();
            performDataBinding();

            f_aListsNotForExport = fetchListsNotForExport();

            prgExport.Enabled = false;
            prgImport.Enabled = true;

            if (f_traceSwitch.TraceInfo)
            {
                f_traceHelper.TraceInfo("frmContentDeployer: Initialised and bound controls.");
            }

            if (f_traceSwitch.TraceVerbose)
            {
                f_traceHelper.TraceVerbose("frmContentDeployer: Exiting frmContentDeployer().");
            }
        }