>>>I like to use populate in this cases, and I think I would separate the work for each list
>>>
>>>populateSource()
>>>populateDestination()
>>>getSourceItems()
>>>getDestinationItems()
>>
>>+ 2 more methods Populate() and GetItems() since these methods will call generic method with object reference?
>>
>>Sounds interesting, may be I should re-design. (In the meantime I just finished adding new methods as Boris proposed) but haven't coded them yet.
>>
>>Let's see what Boris think - I like your idea better, actually.
>
>
>You mean something like:
>
>procedure Populate()
> this.populateSource()
> this.populateDestination()
>endproc
>
>?
>
>I agree with Populate, but I would not have a generic method to get items from both lists.
No, I meant
procedure PopulateSource(array)
this.Populate(@array, this.lstSource)
If it's not broken, fix it until it is.
My Blog