This is more a design question than a c# question, but I cannot locate a better forum. Appologies if a better forum exists.
I'm about to create my first desktop app. up to this point I have designed web applications using MVP with webforms.
The desktop app is very simple.
1. select 1 of 2 reports
2. enter parameters specific to that report
3. generate a pdf from a crystal report
I can quickly do all this for web app, but only one user is getting this app, so a simlpe desktop app was decided on.
specific questions?
1. Where do I initialize IoC? in a web app I use the HttpAppliation.Application_Start().
2. Where would I manage a UOW? in a web app I use the HttpAppliation.Begin_Request() and HttpAppliation.End_Request().
3. With web apps just about everything is a string when binding data. first I parse the value. then pass this value (usually id) to the service layer load domain from repository and process logic. With a desktop app can I bind the acutal collection to the enumerable control and work directly with this object, correct?
Quick example
Bind list of customers to a dropdown list.
select a customer.
pass customer to service fascade, which generates report
with a web application I would parse the customer id from the selected value property.
pass the id to the service, the service would fetch the customer and generate the report.
Jason Meckley
Programmer
Specialty Bakers, Inc.
I'm about to create my first desktop app. up to this point I have designed web applications using MVP with webforms.
The desktop app is very simple.
1. select 1 of 2 reports
2. enter parameters specific to that report
3. generate a pdf from a crystal report
I can quickly do all this for web app, but only one user is getting this app, so a simlpe desktop app was decided on.
specific questions?
1. Where do I initialize IoC? in a web app I use the HttpAppliation.Application_Start().
2. Where would I manage a UOW? in a web app I use the HttpAppliation.Begin_Request() and HttpAppliation.End_Request().
3. With web apps just about everything is a string when binding data. first I parse the value. then pass this value (usually id) to the service layer load domain from repository and process logic. With a desktop app can I bind the acutal collection to the enumerable control and work directly with this object, correct?
Quick example
Bind list of customers to a dropdown list.
select a customer.
pass customer to service fascade, which generates report
with a web application I would parse the customer id from the selected value property.
pass the id to the service, the service would fetch the customer and generate the report.
Jason Meckley
Programmer
Specialty Bakers, Inc.