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();
            }
Example #2
0
 public InputColumns(string cols) : this()
 {
     if (string.IsNullOrEmpty(cols))
     {
         inputLineages = new List <int>();
     }
     else
     {
         inputLineages = InputColumns.ParseInputLineages(cols);
     }
     ValidateLineages();
 }
Example #3
0
        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));
        }
Example #4
0
 /// <summary>
 /// Returngs string representing input lineages
 /// </summary>
 /// <returns></returns>
 public string GetInputLineagesString()
 {
     return(InputColumns.BuildInputLineagesString(inputLineages));
 }
Example #5
0
 public InputColumns(InputColumns cth)
 {
     this.inputLineages = new List <int>(cth.inputLineages);
     caption            = cth.caption;
     captions           = new List <string>(cth.captions);
 }