コード例 #1
0
ファイル: DataFlowUI.cs プロジェクト: andreas5588/PP.SSIS
 /// <summary>
 /// Initializes the DataFlowUI Instance
 /// </summary>
 /// <param name="dtsComponentMetadata">IDTSComponentMetaData of the DataFlow component</param>
 /// <param name="serviceProvider">IService provider tobe asosciated with the DataFlowUI</param>
 public virtual void Initialize(IDTSComponentMetaData dtsComponentMetadata, IServiceProvider serviceProvider)
 {
     this.componentMetadata = dtsComponentMetadata;
     this.serviceProvider   = serviceProvider;
     if (this.designTimeComponent == null)
     {
         this.designTimeComponent = this.componentMetadata.Instantiate();
     }
 }
コード例 #2
0
ファイル: DataFlowUI.cs プロジェクト: andreas5588/PP.SSIS
        /// <summary>
        /// Launches the Edit form for the DataFlow component
        /// </summary>
        /// <param name="parentWindow"></param>
        /// <param name="variables"></param>
        /// <param name="connections"></param>
        /// <returns></returns>
        public bool Edit(IWin32Window parentWindow, Variables variables, Connections connections)
        {
            this.connections = connections;
            this.variables   = variables;

            TUIForm frm = new TUIForm();

            if (designTimeComponent == null)
            {
                designTimeComponent = componentMetadata.Instantiate();
            }

            InputColumnsUIEditor.UIHelper = this;

            frm.InitializeUIForm(this);

            DialogResult result = frm.ShowDialog(parentWindow);

            return(result == DialogResult.OK);
        }