Hi,
Neither one.
The business object just create a Client (for example) and then it's
responsability of who is using it to work with it.
So yes, practically you will have duplicated code, or in other word, two
different codes that do the same like "Show the client info to the user".
The thing is that a web app is a completely different from a win app. The
way you interact with the user is different, so it's very difficult to use
the same code for both of them.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Michael" <Mi*****@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
Hi,
Do you use a config file, or do you use the name of the various UI
controls
to populate your controls' data? I presume that both your Win & Web
controls
have the same name to avoid duplicate code?
Thanks.
Mike
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
What I do is more like the second , I have a Client class along with
another
set of classes, they are defined in a dll, this dll is included in two
projects. web & win , there the correct form/page instantiate the Client
class and populate its controls as needed.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Michael" <Mi*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com... >
> Hi,
>
> I would like to design my application with several different user
> interfaces. I was thinking to create business objects with properties
> to
> retrieve/set values and display them either in textboxes and/or labels.
> I
> would like my user controls (Windows or Web) to have a property that I
> set
> that points to the business object's property. How could I do that?
> Or should I simply write a method that receives the business object and
> then
> populates the various controls on the UI?
>
> Any suggestion is appreciated.
>
> Thanks.
> Mike
>
>
>
>
>
>