Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: Seeking a C# mentor. Pin
Richard Andrew x644-Jan-12 13:17
professionalRichard Andrew x644-Jan-12 13:17 
GeneralRe: Seeking a C# mentor. Pin
Member 85400644-Jan-12 13:40
Member 85400644-Jan-12 13:40 
GeneralRe: Seeking a C# mentor. Pin
fjdiewornncalwe5-Jan-12 4:40
professionalfjdiewornncalwe5-Jan-12 4:40 
QuestionFeedback on this Tree class design? Pin
SledgeHammer014-Jan-12 11:06
SledgeHammer014-Jan-12 11:06 
AnswerRe: Feedback on this Tree class design? Pin
Pete O'Hanlon5-Jan-12 2:37
mvePete O'Hanlon5-Jan-12 2:37 
GeneralRe: Feedback on this Tree class design? Pin
SledgeHammer015-Jan-12 6:45
SledgeHammer015-Jan-12 6:45 
GeneralRe: Feedback on this Tree class design? Pin
SledgeHammer015-Jan-12 10:11
SledgeHammer015-Jan-12 10:11 
AnswerRe: Feedback on this Tree class design? Pin
BillWoodruff5-Jan-12 17:28
professionalBillWoodruff5-Jan-12 17:28 
Certainly agree that whoever down-voted this post is an idiot.

I've been working with TreeViews a long time, and one question your "spec" brings to my mind is: do you define a Tree as one "root" node, from which "all springs forth," or, is a TreeView a "container" that has a "root level" collection of TreeNodes. From a classic "computer science" point of view: probably the first definition, yes. In the WinForms MS provided TreeView, and the third-party TreeView I use (a tool which makes the WinForms standard TV look, and perform, like sandpile mudspatter, imho, from Lidor Systems), the second answer would apply.

This may be a "moot" point to raise here: after all you could fill any container with a collection of "views of " TreeViews based on the "one root" model.

At my suggestion, Lidor created a dynamically updated "flat list" collection of Nodes in later versions of their TreeView, which I find quite handy, and, of course, you can write an extension to create a "flat list" of a WinForms TV (excellent examples of this based on ideas by Eric Lippert and Wes Dyer on StackOverFlow that use a stack to make creating such a flat list very efficient).

Some other stray thoughts on things I would like a TreeView able to allow:

1. the ability to declare a strongly typed TreeView: something like:
StrongTypedTreeView myStrongTV = new StrongTypedTreeView(NodeValueType: typeof(double));
2. the ability to declare either a strongly typed 'Tag property, or a strongly typed Collection that functioned like the typical 'Tag property does now. The idea being to reduce casting of the Tag back into whatever object form you want it in.

best, Bill
"It is the mark of an educated mind to be able to entertain a thought without accepting it." Aristotle

AnswerRe: Feedback on this Tree class design? Pin
RobCroll6-Jan-12 1:40
RobCroll6-Jan-12 1:40 
GeneralRe: Feedback on this Tree class design? Pin
BillWoodruff7-Jan-12 23:52
professionalBillWoodruff7-Jan-12 23:52 
QuestionNAudio Pin
Member 20880664-Jan-12 9:11
Member 20880664-Jan-12 9:11 
AnswerRe: NAudio Pin
RobCroll6-Jan-12 1:58
RobCroll6-Jan-12 1:58 
Questionhelp with code for convert from csv to excell Pin
goldsoft4-Jan-12 1:59
goldsoft4-Jan-12 1:59 
AnswerRe: help with code for convert from csv to excell Pin
Dave Kreskowiak4-Jan-12 3:22
mveDave Kreskowiak4-Jan-12 3:22 
GeneralRe: help with code for convert from csv to excell Pin
goldsoft4-Jan-12 4:09
goldsoft4-Jan-12 4:09 
GeneralRe: help with code for convert from csv to excell PinPopular
Dave Kreskowiak4-Jan-12 4:42
mveDave Kreskowiak4-Jan-12 4:42 
GeneralRe: help with code for convert from csv to excell Pin
jschell4-Jan-12 8:19
jschell4-Jan-12 8:19 
GeneralRe: help with code for convert from csv to excell Pin
Dave Kreskowiak4-Jan-12 9:17
mveDave Kreskowiak4-Jan-12 9:17 
GeneralRe: help with code for convert from csv to excell Pin
jschell6-Jan-12 8:36
jschell6-Jan-12 8:36 
GeneralRe: help with code for convert from csv to excell Pin
fjdiewornncalwe4-Jan-12 9:19
professionalfjdiewornncalwe4-Jan-12 9:19 
GeneralRe: help with code for convert from csv to excell Pin
jschell6-Jan-12 8:37
jschell6-Jan-12 8:37 
Questioncalling ShowDialog() Pin
MahaKh4-Jan-12 1:10
MahaKh4-Jan-12 1:10 
AnswerRe: calling ShowDialog() Pin
Pete O'Hanlon4-Jan-12 1:32
mvePete O'Hanlon4-Jan-12 1:32 
GeneralRe: calling ShowDialog() Pin
MahaKh4-Jan-12 2:26
MahaKh4-Jan-12 2:26 
GeneralRe: calling ShowDialog() Pin
Pete O'Hanlon4-Jan-12 3:11
mvePete O'Hanlon4-Jan-12 3:11 

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.