Re: How to I manipulate a form to satisfy to customer.

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




"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:OIlj0pyOGHA.3924@xxxxxxxxxxxxxxxxxxxxxxx
"Nick Hounsome" <nh002@xxxxxxxxxxxxxxxxxx> wrote in message
news:3eVKf.43672$YJ4.36360@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Use an If statement

Ha ha.

I'm not sure why you find that funny, the differences for the 2 customers
are very minor so just have an if statement to implement the different
functionality.

I honestly thought it was supposed to be funny.

I think it is probably safe to say that the OP had already thought of using
an IF statement.


Create an interface with properties, methods and events for the logical
form content (the union of the 2).

Create 2 forms implementing the interface.

Use MVC/MVP pattern with the interface as the view.

Load one form or the other using app config files.

The OP stated he wanted to do this without creating 2 forms as they are
almost identical.

I thought that what he was trying to do was break a mutual dependency
between 2 forms in 2 dlls but since I haven't got the original anymore I
can't say that you are wrong.


.



Relevant Pages

  • Re: SKF bearing information
    ... have to interface with the shaft or housing. ... I get some funny numbers ...
    (rec.crafts.metalworking)
  • Re: TMW: where are we with CSSM nesreader apps ?
    ... Funny, it seems to be a new thread, not part of an existing one. ... with a dependable command line interface. ... It looks like some new posts cannot be seen with the OLD TMW ... Haven't kept statistics daily since posted the question a couple of days ago, but seemed somewhat lower fraction yesterday altho this am just glancing at preview window 4 of 14 since midnight do. ...
    (comp.soft-sys.matlab)
  • Re: Q: ASA 5505 (Home Office) - Dual ISP ?
    ... Funny stuff about the globals and NAT statements - Why not just use ... backup interface and assigning VLAN to the individual switchports. ...
    (comp.dcom.sys.cisco)
  • Re: TMW: where are we with CSSM nesreader apps ?
    ... Tristram Scott wrote: ... Funny, it seems to be a new thread, not part of an existing one. ... with a dependable command line interface. ... It looks like some new posts cannot be seen with the OLD TMW ...
    (comp.soft-sys.matlab)
  • Re: How to I manipulate a form to satisfy to customer.
    ... I'm not sure why you find that funny, the differences for the 2 customers ... Use MVC/MVP pattern with the interface as the view. ... Michael ...
    (microsoft.public.dotnet.languages.csharp)