Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Using Progress Bars

Using Progress Bars

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionbusinessannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mr_12345
    wrote on last edited by
    #1

    If you create all your business logic inside of a class which does a bunch of processing. Let's say this class is passed a file name and reads each line of the file to do some processing. If I want to display to the user the progress of reading through the file, what is the best way to update the progress bar? How do you keep business logic and presentaion layer separate in this case? Mike

    C 1 Reply Last reply
    0
    • M mr_12345

      If you create all your business logic inside of a class which does a bunch of processing. Let's say this class is passed a file name and reads each line of the file to do some processing. If I want to display to the user the progress of reading through the file, what is the best way to update the progress bar? How do you keep business logic and presentaion layer separate in this case? Mike

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      You make a new event (ReadStautsUpdate for example) and then your class fiers that event everytime it reads a line. You add a event hanlder on your form which will update the progressbar. -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      T 1 Reply Last reply
      0
      • C CWIZO

        You make a new event (ReadStautsUpdate for example) and then your class fiers that event everytime it reads a line. You add a event hanlder on your form which will update the progressbar. -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

        T Offline
        T Offline
        thebread
        wrote on last edited by
        #3

        If your business logic runs on an other machine than your client you have to use i.e. something like the massage queue server, which provides the notification of your client of server side events. regards, bernd

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups