Results 1 to 4 of 4

Thread: Whats the diference ?

  1. #1

    Thread Starter
    Hyperactive Member Pac_741's Avatar
    Join Date
    Jun 2007
    Location
    Mexico
    Posts
    298

    Whats the diference ?

    Hi, lets say i have a program that will convert a lot of strings in intengers
    should i code all the process in the same class of the form or should i do it in another class ? whats the diference ?? its more efficient ? or what '
    C# and WPF developer
    My Website:
    http://singlebits.com/

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Whats the diference ?

    Thread moved from Application Deployment forum, which is for questions about installing/distributing your software

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Whats the diference ?

    A form is a presentation element and string processing has nothing to do with presentation.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: Whats the diference ?

    All you form should do is direct and display input and output. This input/output should be sent/received from a "Business layer" Which handles the data and does what processing on the data that is needed. If you have a database that would receive its data from the "business Layer" and not the UI. The "business layer" can be made up of many classes it doesn't need to be one big one that handles everything. Like this:

    UI
    -------------------------------
    Classes that process information
    -------------------------------
    Databases/Files

    This way its easier to make changes to each layer without rewriting lots of code.
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width