Click here to Skip to main content
11,431,171 members (68,820 online)
   

C#

 
GeneralRe: Universal Patch Finder .NET plug-ins Pin
droopy62-Mar-13 8:27
memberdroopy62-Mar-13 8:27 
GeneralRe: Universal Patch Finder .NET plug-ins Pin
droopy63-Mar-13 9:35
memberdroopy63-Mar-13 9:35 
AnswerRe: Universal Patch Finder .NET plug-ins Pin
Mycroft Holmes12-Aug-14 1:36
professionalMycroft Holmes12-Aug-14 1:36 
QuestionC#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
S Akshay6-Dec-12 18:03
memberS Akshay6-Dec-12 18:03 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
lukeer6-Dec-12 21:50
memberlukeer6-Dec-12 21:50 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
Mycroft Holmes6-Dec-12 22:51
memberMycroft Holmes6-Dec-12 22:51 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
Simon_Whale6-Dec-12 23:54
memberSimon_Whale6-Dec-12 23:54 
QuestionRecursive data object and Tree View WPF Pin
radkrish6-Dec-12 14:38
memberradkrish6-Dec-12 14:38 
Hi,
This is little bit of a oops question. As I am not a full time programmer, I am struggling with little bit of basics. any kind of favor would be appreciated.
namespace NameSpaceX.DataModel
{
    class BFPFDataObject
    {
        public WDataObject thisObject { get; set; }
 
        List<BFPFDataObject> children = new List<BFPFDataObject>();
 
        public IList<BFPFDataObject> Children
        {
            get { return children; }
        }        
 
        public BFPFDataObject(WDataObject wdoObj)
        {
            thisObject = wdoObj;
            List<WDataObject> wdoDBContents = PFAPIUtils.GetContents(wdoObj, false);
            foreach (WDataObject tempobj in wdoDBContents)
            {
                BFPFDataObject _children = new BFPFDataObject(wdoObj);
                children.Add(_children);
            }            
        }
    }
}
 



I would like to know if its a legitimate class definition
WDataObject is the object what i get from a third part lib
using this I can make calls and navigate the tree

List<WDataObject> wdoDBContents = PFAPIUtils.GetContents(wdoObj, false);

above function that do this for me,
However if pass the second parameter to be true, then the function make recursive call and return a list which is all in the same hierarchy.

if the parameter is false then it return only the list objects in the next level.

I am struggling to build a hierarchical list and show it on a tree view, can some body offer some help ?!!!

My gut feeling is if I can build the list sucessfully as indicated above I would be able to do the WPF part myself.

Please throw some light on the subject

Regards
Krish
QuestionColorDialog. Pin
PHS2416-Dec-12 12:22
memberPHS2416-Dec-12 12:22 
AnswerRe: ColorDialog. Pin
Zac Greve7-Dec-12 18:12
memberZac Greve7-Dec-12 18:12 
GeneralRe: ColorDialog. Pin
PHS2418-Dec-12 1:05
memberPHS2418-Dec-12 1:05 
GeneralRe: ColorDialog. Pin
Zac Greve8-Dec-12 8:35
memberZac Greve8-Dec-12 8:35 
GeneralRe: ColorDialog. Pin
PHS2418-Dec-12 10:27
memberPHS2418-Dec-12 10:27 
GeneralRe: ColorDialog. Pin
Zac Greve8-Dec-12 13:46
memberZac Greve8-Dec-12 13:46 
GeneralRe: ColorDialog. Pin
PHS2418-Dec-12 23:09
memberPHS2418-Dec-12 23:09 
GeneralRe: ColorDialog. Pin
Zac Greve9-Dec-12 6:52
memberZac Greve9-Dec-12 6:52 
GeneralRe: ColorDialog. Pin
PHS2419-Dec-12 22:35
memberPHS2419-Dec-12 22:35 
GeneralRe: ColorDialog. Pin
Zac Greve10-Dec-12 7:10
memberZac Greve10-Dec-12 7:10 
GeneralRe: ColorDialog. Pin
Zac Greve10-Dec-12 7:15
memberZac Greve10-Dec-12 7:15 
GeneralRe: ColorDialog. Pin
PHS24110-Dec-12 7:21
memberPHS24110-Dec-12 7:21 
GeneralRe: ColorDialog. Pin
Zac Greve10-Dec-12 10:16
memberZac Greve10-Dec-12 10:16 
QuestionDbConnectionBuilder and class question Pin
Member 82084966-Dec-12 9:21
memberMember 82084966-Dec-12 9:21 
AnswerRe: DbConnectionBuilder and class question Pin
Eddy Vluggen6-Dec-12 15:30
memberEddy Vluggen6-Dec-12 15:30 
QuestionNo scrollbars when executing program on another PC [Solved] Pin
Member 96474616-Dec-12 8:43
memberMember 96474616-Dec-12 8:43 
AnswerRe: No scrollbars when executing program on another PC Pin
Alan N6-Dec-12 14:32
memberAlan N6-Dec-12 14:32 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 4 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid