using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using Microsoft.SqlServer.Dts.Pipeline.Design; using Microsoft.SqlServer.Dts.Pipeline.Wrapper; using Microsoft.SqlServer.Dts.Runtime; namespace BILab.Technical.BI.ETL.Pipeline.XmlDestination { class XmlDestinationAdapterUI : IDtsComponentUI { IDTSComponentMetaData90 _md; IServiceProvider _sp; public void Help(System.Windows.Forms.IWin32Window parentWindow) { } public void New(System.Windows.Forms.IWin32Window parentWindow) { } public void Delete(System.Windows.Forms.IWin32Window parentWindow) { } public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Variables vars, Connections cons) { XmlDestinationAdapterUIForm form = new XmlDestinationAdapterUIForm(this._md); DialogResult result = form.ShowDialog(parentWindow); if (result == DialogResult.OK) { return true; } return false; } public void Initialize(IDTSComponentMetaData90 dtsComponentMetadata, IServiceProvider serviceProvider) { // Store the component metadata. this._md = dtsComponentMetadata; this._sp = serviceProvider; } } }