protected override void DTSOutputColumnSetProcessing() { base.DTSOutputColumnSetProcessing(); if (DTSOutputColumn != null) { hashTypeProperty = DTSOutputColumn.CustomPropertyCollection[Resources.HashAlgorithmPropertyName]; hashInputColumns = DTSOutputColumn.CustomPropertyCollection[Resources.HashColumnHashInputColumnsPropertyName]; hashImplementationType = DTSOutputColumn.CustomPropertyCollection[Resources.HashColumnHashImplementationTypePropertyName]; hashFieldSeparator = DTSOutputColumn.CustomPropertyCollection[Resources.HashColumnHashFieldSeparatorPropertyName]; nullReplacementValue = DTSOutputColumn.CustomPropertyCollection[Resources.HashColumnNullReplacementValue]; stringTrimming = DTSOutputColumn.CustomPropertyCollection[Resources.HashColumnStringTrimmingPropertyName]; _inputColumns = null; } else { hashTypeProperty = null; hashInputColumns = null; hashFieldSeparator = null; nullReplacementValue = null; stringTrimming = null; _inputColumns = new InputColumns(); } UpdateReadOnlyProperty("HashInputColumns", !InputIsAttached); UpdateReadOnlyProperties(); }
public InputColumns(string cols) : this() { if (string.IsNullOrEmpty(cols)) { inputLineages = new List <int>(); } else { inputLineages = InputColumns.ParseInputLineages(cols); } ValidateLineages(); }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IWindowsFormsEditorService svc = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; InputColumns cth = value as InputColumns; if (cth != null) { using (InputColumnsUIEditorForm hcue = new UI.InputColumnsUIEditorForm()) { if (UIHelper != null) { hcue.InitializeForm(UIHelper, cth.GetInputLineages()); } if (hcue.ShowDialog() == DialogResult.OK) { cth.SetInputLineages(hcue.GetInputColumnsLineages()); } } } return(new InputColumns(cth)); }
/// <summary> /// Returngs string representing input lineages /// </summary> /// <returns></returns> public string GetInputLineagesString() { return(InputColumns.BuildInputLineagesString(inputLineages)); }
public InputColumns(InputColumns cth) { this.inputLineages = new List <int>(cth.inputLineages); caption = cth.caption; captions = new List <string>(cth.captions); }