-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDataCleanerUI.cs
More file actions
47 lines (36 loc) · 1.31 KB
/
DataCleanerUI.cs
File metadata and controls
47 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Windows.Forms;
using Microsoft.SqlServer.Dts.Pipeline.Design;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime;
namespace DataCleansing
{
public class DataCleanerUI : IDtsComponentUI
{
private IDTSComponentMetaData100 _cmd = null;
private IServiceProvider _sp = null;
public void Initialize(IDTSComponentMetaData100 dtsComponentMetadata, IServiceProvider serviceProvider)
{
_cmd = dtsComponentMetadata;
_sp = serviceProvider;
}
public void New(IWin32Window parentWindow)
{
}
public bool Edit(IWin32Window parentWindow, Variables variables, Connections connections)
{
var propertiesEditor = new DataCleanerDialog();
propertiesEditor.Connections = connections;
propertiesEditor.ComponentMetaData = _cmd;
propertiesEditor.ServiceProvider = _sp;
////propertiesEditor.Variables = variables;
return propertiesEditor.ShowDialog(parentWindow) == DialogResult.OK;
}
public void Delete(IWin32Window parentWindow)
{
}
public void Help(IWin32Window parentWindow)
{
}
}
}