public HDFSTaskUIForm(Microsoft.SqlServer.Dts.Runtime.TaskHost taskHost, Microsoft.SqlServer.Dts.Runtime.Connections connections, IServiceProvider serviceProvider) : this() { this.taskHost = taskHost; this.connections = connections; this.serviceProvider = serviceProvider; this.connectionService = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService; }
public HDFSTaskUIForm(Microsoft.SqlServer.Dts.Runtime.TaskHost taskHost, Microsoft.SqlServer.Dts.Runtime.Connections connections, IServiceProvider serviceProvider) : this() { this.taskHost = taskHost; this.connections = connections; this.serviceProvider = serviceProvider; this.connectionService = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService; }
public bool New(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, ConnectionManagerUIArgs connectionUIArg) { IDtsClipboardService clipboardService; clipboardService = (IDtsClipboardService)serviceProvider.GetService(typeof(IDtsClipboardService)); if (clipboardService != null) // If connection manager has been copied and pasted, take no action. { if (clipboardService.IsPasteActive) { return(true); } } return(ShowUI(parentWindow)); }
public ReverseStringUIForm(IDTSComponentMetaData100 dtsComponentMetaData, IServiceProvider serviceProvider, Connections connections) { InitializeComponent(); // Store constructor parameters for later _dtsComponentMetaData = dtsComponentMetaData; // Get design-time interface for changes and validation _designTimeComponent = _dtsComponentMetaData.Instantiate(); // Get Input _input = _dtsComponentMetaData.InputCollection[0]; // Set any form controls that host component properties here // None required for ReverseString component // Populate DataGridView with columns SetInputVirtualInputColumns(); _connections = connections; // Get IDtsConnectionService and store. IDtsConnectionService dtsConnectionService = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService; _dtsConnectionService = dtsConnectionService; // Get Connections collection, and get name of currently selected connection. string connectionName = ""; if (_dtsComponentMetaData.RuntimeConnectionCollection[0] != null) { IDTSRuntimeConnection100 runtimeConnection = _dtsComponentMetaData.RuntimeConnectionCollection[0]; if (runtimeConnection != null && runtimeConnection.ConnectionManagerID.Length > 0 && _connections.Contains(runtimeConnection.ConnectionManagerID)) { connectionName = _connections[runtimeConnection.ConnectionManagerID].Name; } } // Populate connections combo. PopulateConnectionsCombo(this.cmbSqlConnections, Connection_Type, connectionName); }
public ReverseStringUIForm(IDTSComponentMetaData100 dtsComponentMetaData, IServiceProvider serviceProvider, Connections connections) { InitializeComponent(); // Store constructor parameters for later _dtsComponentMetaData = dtsComponentMetaData; // Get design-time interface for changes and validation _designTimeComponent = _dtsComponentMetaData.Instantiate(); // Get Input _input = _dtsComponentMetaData.InputCollection[0]; // Set any form controls that host component properties here // None required for ReverseString component // Populate DataGridView with columns SetInputVirtualInputColumns(); _connections = connections; // Get IDtsConnectionService and store. IDtsConnectionService dtsConnectionService = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService; _dtsConnectionService = dtsConnectionService; // Get Connections collection, and get name of currently selected connection. string connectionName = ""; if (_dtsComponentMetaData.RuntimeConnectionCollection[0] != null) { IDTSRuntimeConnection100 runtimeConnection = _dtsComponentMetaData.RuntimeConnectionCollection[0]; if (runtimeConnection != null && runtimeConnection.ConnectionManagerID.Length > 0 && _connections.Contains(runtimeConnection.ConnectionManagerID)) { connectionName = _connections[runtimeConnection.ConnectionManagerID].Name; } } // Populate connections combo. PopulateConnectionsCombo(this.cmbSqlConnections, Connection_Type, connectionName); }
public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(ShowUI(parentWindow)); }
public bool Edit(IWin32Window parentWindow, DTSRuntime.Variables variables, DTSRuntime.Connections connections) { ShowForm(parentWindow); return(true); }
bool IDtsComponentUI.Edit(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections) { this.ClearErrors(); try { Debug.Assert(this.componentMetadata != null, "Original Component Metadata is not OK."); this.designtimeComponent = this.componentMetadata.Instantiate(); Debug.Assert(this.designtimeComponent != null, "Design-time component object is not OK."); //Cache the virtual input this.LoadVirtualInput(); //cache variables and connections this.variables = variables; this.connections = connections; return(EditImpl(parentWindow)); } catch (Exception ex) { this.ReportErrors(ex); return(false); } }
/// <summary> /// Called to invoke the UI. /// </summary> /// <param name="parentWindow">The calling window</param> /// <param name="variables">The SSIS variables</param> /// <param name="connections">The SSIS connections</param> /// <returns>True all works</returns> bool IDtsComponentUI.Edit(IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections) { this.ClearErrors(); try { Debug.Assert(this.componentMetadata != null, "Original Component Metadata is not OK."); this.designtimeComponent = this.componentMetadata.Instantiate(); Debug.Assert(this.designtimeComponent != null, "Design-time component object is not OK."); // Cache the virtual input so the available columns are easily accessible. this.LoadVirtualInput(); // Cache variables and connections. this.variables = variables; this.connections = connections; // Here comes the UI that will be invoked in EditImpl virtual method. return(this.EditImpl(parentWindow)); } catch (Exception ex) { this.ReportErrors(ex); return(false); } }
/// <summary> /// Called to invoke the UI. /// </summary> /// <param name="parentWindow">The calling window</param> /// <param name="variables">The SSIS variables</param> /// <param name="connections">The SSIS connections</param> /// <returns>True all works</returns> bool IDtsComponentUI.Edit(IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections) { return(Edit(parentWindow, variables, connections)); }