private void PerformDirectMigrate( string sourceServerUrl, string sourceRootPath, string destinationServerUrl, string destinationRootPath, IReportServerReader reader, IReportServerWriter writer, PythonEngine engine) { DataSourceEditForm dataSourceEditForm = this.mKernel.Get <DataSourceEditForm>(); //TODO This is dumb. Should be resolving all of the forms from the IoC kernel but I don't feel like refactoring atm... MigrateForm migrateForm = new MigrateForm( sourceRootPath, sourceServerUrl, destinationRootPath, destinationServerUrl, dataSourceEditForm, reader, writer, this.mLoggerFactory, engine); // If 'Execute Script' is checked, load script if (chkExecuteScript.Checked) { try { string scriptFile = txtScriptPath.Text; mLogger.Info("Loading script '{0}'...", scriptFile); migrateForm.LoadScript(scriptFile); mLogger.Info("Script '{0}' loaded!", scriptFile); } catch (Exception er) { mLogger.Error(er, "Error loading script"); MessageBox.Show(er.Message, "Error Loading Script", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } } migrateForm.DebugForm = this.mDebugForm; migrateForm.Show(); }
private void PerformDirectMigrate( string sourceServerUrl, string sourceRootPath, string destinationServerUrl, string destinationRootPath, IReportServerReader reader, IReportServerWriter writer) { MigrateForm migrateForm = new MigrateForm( sourceRootPath, sourceServerUrl, destinationRootPath, destinationServerUrl, reader, writer, this.mLoggerFactory); migrateForm.DebugForm = this.mDebugForm; migrateForm.Show(); }