Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About my WPF app to draw a Bolt Hole Pattern.
Message
De
30/07/2008 11:01:00
 
 
À
25/07/2008 13:52:57
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01334102
Message ID:
01335259
Vues:
23
If you have time, please review message #1334102 to see if you can help me out.

>
>From a general point of view one suggestion I'd make is to seperate the job of drawing the holes from the specifying of the parameters.
>Maybe subclass a 'Bolt Hole Drawer' object from a canvas and include all the drawing functionality in that. You could use this on your current form by wiring it up to the various spinners/sliders etc. But it would also be easily re-usable if, for instance, you wanted to use it in a form to display holes patterns stored in a data library.
>
>I've done the same sort of thing but the objects on the canvas could be of many types,be randomly placed, and contain other objects. The canvas had methods to serialize itself (including all contained objects) to either binary or XML but that would probably be overkill in your case since not many parameters are required to reproduce the required layout.
>
>Looks interesting, good luck,
>Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform