Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
Questionhow to convert hex to rgb color code in asp.net Pin
Deenuji6-Dec-12 23:13
Deenuji6-Dec-12 23:13 
AnswerRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale6-Dec-12 23:33
Simon_Whale6-Dec-12 23:33 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Deenuji6-Dec-12 23:59
Deenuji6-Dec-12 23:59 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale7-Dec-12 0:13
Simon_Whale7-Dec-12 0:13 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Richard Deeming7-Dec-12 1:18
mveRichard Deeming7-Dec-12 1:18 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale7-Dec-12 1:22
Simon_Whale7-Dec-12 1:22 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Richard Deeming7-Dec-12 1:26
mveRichard Deeming7-Dec-12 1:26 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale7-Dec-12 1:38
Simon_Whale7-Dec-12 1:38 
JokeRe: how to convert hex to rgb color code in asp.net Pin
Richard MacCutchan7-Dec-12 2:56
mveRichard MacCutchan7-Dec-12 2:56 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Richard MacCutchan7-Dec-12 2:55
mveRichard MacCutchan7-Dec-12 2:55 
QuestionUniversal Patch Finder .NET plug-ins Pin
Hypercube Softwares6-Dec-12 20:38
Hypercube Softwares6-Dec-12 20:38 
AnswerRe: Universal Patch Finder .NET plug-ins Pin
Mycroft Holmes6-Dec-12 21:53
professionalMycroft Holmes6-Dec-12 21:53 
AnswerRe: Universal Patch Finder .NET plug-ins Pin
Pete O'Hanlon6-Dec-12 23:01
mvePete O'Hanlon6-Dec-12 23:01 
AnswerRe: Universal Patch Finder .NET plug-ins Pin
Paul Conrad7-Dec-12 8:08
professionalPaul Conrad7-Dec-12 8:08 
GeneralRe: Universal Patch Finder .NET plug-ins Pin
Hypercube Softwares2-Mar-13 5:51
Hypercube Softwares2-Mar-13 5:51 
GeneralRe: Universal Patch Finder .NET plug-ins Pin
Paul Conrad2-Mar-13 7:19
professionalPaul Conrad2-Mar-13 7:19 
GeneralRe: Universal Patch Finder .NET plug-ins Pin
Hypercube Softwares2-Mar-13 7:27
Hypercube Softwares2-Mar-13 7:27 
GeneralRe: Universal Patch Finder .NET plug-ins Pin
Hypercube Softwares3-Mar-13 8:35
Hypercube Softwares3-Mar-13 8:35 
AnswerRe: Universal Patch Finder .NET plug-ins Pin
Mycroft Holmes12-Aug-14 0:36
professionalMycroft Holmes12-Aug-14 0:36 
QuestionC#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
S Akshay6-Dec-12 17:03
S Akshay6-Dec-12 17:03 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
lukeer6-Dec-12 20:50
lukeer6-Dec-12 20:50 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
Mycroft Holmes6-Dec-12 21:51
professionalMycroft Holmes6-Dec-12 21:51 
AnswerRe: C#.Net error(Front end Visual studio 2010,Back end:SQL server 2008)-) Pin
Simon_Whale6-Dec-12 22:54
Simon_Whale6-Dec-12 22:54 
QuestionRecursive data object and Tree View WPF Pin
radkrish6-Dec-12 13:38
radkrish6-Dec-12 13: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.
C#
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

C#
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
Septimus Hedgehog6-Dec-12 11:22
Septimus Hedgehog6-Dec-12 11:22 

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.