Thanks Mark, I really did not realize when I phrased the question that I may be dabbling with one of the worlds oldest questions. You are absolutely right! The road to programming Hell is paved with a chain of view model factories. But alas, even though I may be a pragmatic albeit naïve coder, I think I can keep my wits about me and avoid straying into the abyss of anti-patterns. I do thank you and Mark Seeman for the "heads up" however to the possible implications of my deviant excursion.
Now if you or someone else (whose programming morals are loose enough to remain in good conscience, when helping someone stray from the edge of purity) would show me how to "pass the IOC to the Orders constructor" so that I can open the Customer Index, I absolutely promise that I will not drill down in the Customer chain, but instead will just grab one customer from the index and add it to the Orders.
Seriously, what I really need is this. In the Screens Sample, here at the CM site, add a button to the Orders Master and call it "ShowCustomer". So I need the code that one would add to the ShowCustomer button proceedure to successfully open the Customer Master.
Bob Ranck
Now if you or someone else (whose programming morals are loose enough to remain in good conscience, when helping someone stray from the edge of purity) would show me how to "pass the IOC to the Orders constructor" so that I can open the Customer Index, I absolutely promise that I will not drill down in the Customer chain, but instead will just grab one customer from the index and add it to the Orders.
Seriously, what I really need is this. In the Screens Sample, here at the CM site, add a button to the Orders Master and call it "ShowCustomer". So I need the code that one would add to the ShowCustomer button proceedure to successfully open the Customer Master.
Bob Ranck