/// <summary> /// Gets the Safe Null details from the Component /// </summary> /// <param name="sender">where the request came from</param> /// <param name="args">the arguments passed</param> void form_GetSafeNullDetail(object sender, SafeNullArgs args) { try { foreach (IDTSCustomProperty customProperty in this.ComponentMetadata.CustomPropertyCollection) { if (customProperty.Name == Utility.SafeNullHandlingPropName) { args.safeNullHandlingDetail = (MultipleHash.SafeNullHandling)customProperty.Value; } } } catch (Exception ex) { this.ReportErrors(ex); } }
/// <summary> /// Sets the Safe Null details to the Component /// </summary> /// <param name="sender">where the request came from</param> /// <param name="args">the arguments passed</param> void form_SetSafeNullDetail(object sender, SafeNullArgs args) { Debug.Assert(args != null, "Invalid arguments passed from the UI"); this.ClearErrors(); try { foreach (IDTSCustomProperty customProperty in this.ComponentMetadata.CustomPropertyCollection) { if (customProperty.Name == Utility.SafeNullHandlingPropName) { customProperty.Value = args.safeNullHandlingDetail; } } } catch (Exception ex) { this.ReportErrors(ex); } }