K
K
Konstantin2018-11-15 23:49:10
WPF
Konstantin, 2018-11-15 23:49:10

What technology is better to use to visualize the algorithm?

As a course project on the OS, I chose "Implementation of the memory allocation model by dynamic sections." Immediately there was a problem: how to implement this using controls.

OP: 512 MB, total task queue (30-100 MB) with no more than 20 and up to 15 task sections.

Approximate UI:
5bedd9bae8b73333451024.pngProblem: there is WPF and WinForms. You can use WPF and create n columns and color each in parts, but then how to calculate what height to fill depending on the task? How to implement it through Binding'i?
If in WinForms, then you can create columns from buttons and completely paint over each of the buttons. But at the same time, the borders of the buttons will be visible and it is also not clear how to redraw after deleting the task. You can create an infinite number of buttons with a height of 1 pixel, and then the accuracy will be and you can get rid of the borders: D
Tell me your options or ideas.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2018-12-21
@nicebmw9

Suddenly, who cares, it turned out like this (WPF + C #):
5c1c22e19c1f6800147930.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question