Click here to Skip to main content
15,894,405 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Accepting a rejected character in a Masked Textbox Pin
Peace ON18-May-10 2:42
Peace ON18-May-10 2:42 
QuestionAdvanced .NET cource Pin
marca29217-May-10 19:56
marca29217-May-10 19:56 
AnswerRe: Advanced .NET cource Pin
Richard MacCutchan17-May-10 21:26
mveRichard MacCutchan17-May-10 21:26 
GeneralRe: Advanced .NET cource Pin
marca29217-May-10 22:18
marca29217-May-10 22:18 
GeneralRe: Advanced .NET cource Pin
Richard MacCutchan18-May-10 10:59
mveRichard MacCutchan18-May-10 10:59 
AnswerRe: Advanced .NET cource Pin
Luc Pattyn18-May-10 1:19
sitebuilderLuc Pattyn18-May-10 1:19 
QuestionRender Method Pin
Mountainking0217-May-10 8:37
Mountainking0217-May-10 8:37 
AnswerRe: Render Method Pin
Luc Pattyn17-May-10 8:58
sitebuilderLuc Pattyn17-May-10 8:58 
this is what I would do:

- define a base class, "DrawingShape"; it has some properties including a Z-order (or a Layer) and some methods, including a Draw() method.
- define specialized shape classes, deriving from DrawingShape; they each override the Draw() method.
- for a drawing, define a List<DrawingShape>
- order that list according to Z-order (back to front).
- to paint the drawing (e.g. in the Paint handler of your canvas Panel), do a foreach over the ordered list of shapes, and call their Draw() method.

A lot of extras are possible; one would be a ShapeGroup, which itself is a DrawingShape, and holds a list of DrawingShapes; so it gets added as one item to the drawing, and its Draw() method would call the Draw() method of all its internal DrawingShapes.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

QuestionRe: Render Method Pin
Mountainking0220-May-10 4:48
Mountainking0220-May-10 4:48 
AnswerRe: Render Method Pin
Luc Pattyn20-May-10 5:14
sitebuilderLuc Pattyn20-May-10 5:14 
QuestionRe: Render Method Pin
Mountainking0220-May-10 5:48
Mountainking0220-May-10 5:48 
AnswerRe: Render Method Pin
Luc Pattyn20-May-10 6:07
sitebuilderLuc Pattyn20-May-10 6:07 
QuestionAdvice: Transaction Processing using MSMQ Pin
DotNetJoe17-May-10 5:28
DotNetJoe17-May-10 5:28 
Question.net framework temporary error Pin
Zeyad Jalil17-May-10 2:21
professionalZeyad Jalil17-May-10 2:21 
AnswerRe: .net framework temporary error Pin
Not Active17-May-10 2:28
mentorNot Active17-May-10 2:28 
GeneralRe: .net framework temporary error Pin
Zeyad Jalil17-May-10 2:32
professionalZeyad Jalil17-May-10 2:32 
GeneralRe: .net framework temporary error Pin
Pete O'Hanlon17-May-10 2:49
mvePete O'Hanlon17-May-10 2:49 
AnswerRe: .net framework temporary error Pin
Tripathi Swati18-May-10 22:57
Tripathi Swati18-May-10 22:57 
QuestionHow to get dll's functions? Pin
phowarso16-May-10 21:55
phowarso16-May-10 21:55 
AnswerRe: How to get dll's functions? Pin
Hristo-Bojilov16-May-10 23:33
Hristo-Bojilov16-May-10 23:33 
AnswerRe: How to get dll's functions? Pin
Eddy Vluggen16-May-10 23:46
professionalEddy Vluggen16-May-10 23:46 
AnswerRe: How to get dll's functions? Pin
Peace ON16-May-10 23:47
Peace ON16-May-10 23:47 
AnswerRe: How to get dll's functions? Pin
neal12318-May-10 19:14
neal12318-May-10 19:14 
QuestionAbout Garbage collector Pin
sujithkumarsl16-May-10 20:51
sujithkumarsl16-May-10 20:51 
AnswerRe: About Garbage collector Pin
Peace ON16-May-10 23:51
Peace ON16-May-10 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.