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. WPF
  4. Design Question

Design Question

Scheduled Pinned Locked Moved WPF
helpquestiondesigntutorial
2 Posts 2 Posters 10 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.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I have an app in which the user can create invoices. There is a lot of data on an invoice:

    Jobs
    Ship To Address

    Builders

    Foremen
    Foreman Phone

    Vendors
    Vendor Locations
    Vendor Contacts
    Vendor Contact Email
    Vendor Contact Phone

    Delivery Method (Will Call or Delivery)
    Delivery Date
    For Will Call
    Picked Up By (employee)
    Picked Up By Email
    Picked Up By Email
    Picked Up Location (From Vendor Locations)

    Items (The items on the PO)

    Much of this is just lists. Right now, some dat is not retrieved until it's needed. For example, Vendor Locations are not retrieved until a Vendor is selected. The problem is that it's getting slow. There's a lot of logic being run when list items are picked. So, should I only load data when it's needed, or load all data first then run any logic, like the Vendor Location? In other words, get all Vendors and all Vendor Locations, and only load the locations in the client one the initial data load is done? Thanks

    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

    L 1 Reply Last reply
    0
    • K Kevin Marois

      I have an app in which the user can create invoices. There is a lot of data on an invoice:

      Jobs
      Ship To Address

      Builders

      Foremen
      Foreman Phone

      Vendors
      Vendor Locations
      Vendor Contacts
      Vendor Contact Email
      Vendor Contact Phone

      Delivery Method (Will Call or Delivery)
      Delivery Date
      For Will Call
      Picked Up By (employee)
      Picked Up By Email
      Picked Up By Email
      Picked Up Location (From Vendor Locations)

      Items (The items on the PO)

      Much of this is just lists. Right now, some dat is not retrieved until it's needed. For example, Vendor Locations are not retrieved until a Vendor is selected. The problem is that it's getting slow. There's a lot of logic being run when list items are picked. So, should I only load data when it's needed, or load all data first then run any logic, like the Vendor Location? In other words, get all Vendors and all Vendor Locations, and only load the locations in the client one the initial data load is done? Thanks

      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Both. Your app should anticipate the user's intention by the parts they're accessing and start asynchronous loads into observable collections that get bound when a particular user control ("view") gets loaded. And / or you need revised stored procs / data views / filtering.

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      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