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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to visualize a machine scheduling plan?

How to visualize a machine scheduling plan?

Scheduled Pinned Locked Moved C#
helptutorialcsswpfwcf
2 Posts 2 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.
  • B Offline
    B Offline
    bjung
    wrote on last edited by
    #1

    Hi! We have to visualize a maschine scheduling plan in a winform-application... An example of such a plan in ascii-style: machine |00:00|00:10|00:20|00:30|00:40|00:50 --------|--------------------------------------- M1 |Job1A| |Job2A|Job3C| |Job1B M2 | |Job3B| | | | M3 |Job3A| |Job1A|Job2B|Job3C| ------------------------------------------------ | | | | | | I hope you get the idea ;-) First idea: Find a free control that can display gantt-charts --> no (appropriate) found --> the good ones are not free, unfortunately these are no option for a university assignment :-( Second idea: We use a datagrid, with many, many columns. Each column represents a certain timespan. The rows are the machines, and a marked cell means that the machine y is busy at time x. For each job that was scheduled, we wan't to use a different color, part-jobs of the same job have the same color. Unfortunatelly we encountered several problems: We use a datatable as datasource for the grid, and "..Columns.Add(...)" seems to have severe performance problems for #columns>2000, for #columns>10000 the computation time is inacceptable. The same problems, in an even more akward fashion occured while binding the DataTable ot the datagrid. I think the problem is that we have many columns (>100.000) with only a few rows (<100). If anyone has an idea how to get over these performance problems or how to visualize the machine scheduling plan in a completely different way, your help would be greatly appreciated... with kind regards, Benjamin Jung

    T 1 Reply Last reply
    0
    • B bjung

      Hi! We have to visualize a maschine scheduling plan in a winform-application... An example of such a plan in ascii-style: machine |00:00|00:10|00:20|00:30|00:40|00:50 --------|--------------------------------------- M1 |Job1A| |Job2A|Job3C| |Job1B M2 | |Job3B| | | | M3 |Job3A| |Job1A|Job2B|Job3C| ------------------------------------------------ | | | | | | I hope you get the idea ;-) First idea: Find a free control that can display gantt-charts --> no (appropriate) found --> the good ones are not free, unfortunately these are no option for a university assignment :-( Second idea: We use a datagrid, with many, many columns. Each column represents a certain timespan. The rows are the machines, and a marked cell means that the machine y is busy at time x. For each job that was scheduled, we wan't to use a different color, part-jobs of the same job have the same color. Unfortunatelly we encountered several problems: We use a datatable as datasource for the grid, and "..Columns.Add(...)" seems to have severe performance problems for #columns>2000, for #columns>10000 the computation time is inacceptable. The same problems, in an even more akward fashion occured while binding the DataTable ot the datagrid. I think the problem is that we have many columns (>100.000) with only a few rows (<100). If anyone has an idea how to get over these performance problems or how to visualize the machine scheduling plan in a completely different way, your help would be greatly appreciated... with kind regards, Benjamin Jung

      T Offline
      T Offline
      Tom Ollar
      wrote on last edited by
      #2

      Just paint it in a user control - how hard could it be? 100,000 objects is too big for any C# model - figure a way to paint only the part the user can see, incrementally reading the necessary data. You can usually do this pretty well by creating a matrix of cells which fills the user control, and then "rolling" the data behind them as the user scrolls.

      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