/// <summary> /// Gets the Threading Detail from the Component. /// </summary> /// <param name="sender">where the request came from</param> /// <param name="args">the arguments passed</param> void form_GetThreadingDetail(object sender, ThreadingArgs args) { try { foreach (IDTSCustomProperty customProperty in this.ComponentMetadata.CustomPropertyCollection) { if (customProperty.Name == Utility.MultipleThreadPropName) { args.threadDetail = (MultipleHash.MultipleThread)customProperty.Value; } } } catch (Exception ex) { this.ReportErrors(ex); } }
/// <summary> /// Sends the Threading Detail back to the Component. /// </summary> /// <param name="sender">where the request came from</param> /// <param name="args">the arguments passed</param> void form_SetThreadingDetail(object sender, ThreadingArgs 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.MultipleThreadPropName) { customProperty.Value = args.threadDetail; } } } catch (Exception ex) { this.ReportErrors(ex); } }