Example #1
0
        /// <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);
            }
        }
Example #2
0
 public void InitializeUIForm(IDTSComponentMetaData componentMetadata, Variables variables, Connections connections, IDTSDesigntimeComponent designTimeComponent)
 {
     this.variables           = variables;
     this.connections         = connections;
     this.componentMetadata   = componentMetadata;
     this.designTimeComponent = designTimeComponent;
 }