/// <summary> /// Gets the Millisecond details from the Component /// </summary> /// <param name="sender">where the request came from</param> /// <param name="args">the arguments passed</param> void form_GetMillisecondDetail(object sender, HashMillisecondArgs args) { try { foreach (IDTSCustomProperty customProperty in this.ComponentMetadata.CustomPropertyCollection) { if (customProperty.Name == Utility.HandleMillisecondPropName) { args.millisecondHandlingDetail = (MultipleHash.MillisecondHandling)customProperty.Value; } } } catch (Exception ex) { this.ReportErrors(ex); } }
/// <summary> /// Sets the Millisecond details to the Component /// </summary> /// <param name="sender">where the request came from</param> /// <param name="args">the arguments passed</param> void form_SetMillisecondDetail(object sender, HashMillisecondArgs 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.HandleMillisecondPropName) { customProperty.Value = args.millisecondHandlingDetail; } } } catch (Exception ex) { this.ReportErrors(ex); } }