public WizardStsadmCommand() { trace = new TraceHelper(this); }
/// <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; } }
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()."); } }