Re: Business Object and User Interfaces

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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" <Michael@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8A876F6B-1321-48FF-A5ED-8EC4FF7433F0@xxxxxxxxxxxxxxxx
>
> 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" <Michael@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:6046B831-FFE6-4980-A3FE-F4681AD04191@xxxxxxxxxxxxxxxx
>> >
>> > 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
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>>


.



Relevant Pages

  • Re: Windows Anwendungmit einer Web mySQL als Backend?
    ... Benutzerfreundlichekeit, Geschwindigkeit (Seite muss aufgebaut werden), das ... Nun wenn ich also das alles von Web auf Client verschieben will, ... Applikation gar nicht zur Gesicht bekomme und wenn das so wäre, ... Aussage "weil ich die Controls in meiner Applikation gar nicht zur Gesicht ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: VB.net and ASP.Net Typed Datasets
    ... really needs these controls, that is a way to do it and still write the app. ... ASP.NET applications have many more advantages and so ... For these reasons we wish to use ASP.net, to have a Smart Client. ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VB.net and ASP.Net Typed Datasets
    ... you can host Windows Forms via an ASP.NET web page. ... For these reasons we wish to use ASP.net, to have a Smart Client. ... inadequacies with the web controls and the winform. ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VB.net and ASP.Net Typed Datasets
    ... be as robust as it can be if you build the app with Windows ... For these reasons we wish to use ASP.net, to have a Smart Client. ... inadequacies with the web controls and the winform. ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VB.net and ASP.Net Typed Datasets
    ... be as robust as it can be if you build the app with Windows ... inadequacies with the web controls and the winform. ... The web forms controls must render to the client as standard ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)