Click here to Skip to main content
15,889,372 members
Home / Discussions / C#
   

C#

 
QuestionHow to make control reflect changes was maded on his datasource Pin
El'Cachubrey5-Mar-08 4:54
El'Cachubrey5-Mar-08 4:54 
AnswerRe: How to make control reflect changes was maded on his datasource Pin
led mike5-Mar-08 4:59
led mike5-Mar-08 4:59 
QuestionEfficient Xml reading? Pin
Lutosław5-Mar-08 4:28
Lutosław5-Mar-08 4:28 
AnswerNo Reflection Pin
Lutosław5-Mar-08 4:46
Lutosław5-Mar-08 4:46 
AnswerRe: Efficient Xml reading? Pin
led mike5-Mar-08 5:01
led mike5-Mar-08 5:01 
GeneralRe: Efficient Xml reading? Pin
Lutosław5-Mar-08 6:32
Lutosław5-Mar-08 6:32 
GeneralRe: Efficient Xml reading? Pin
led mike5-Mar-08 6:47
led mike5-Mar-08 6:47 
GeneralRe: Efficient Xml reading? Pin
Lutosław5-Mar-08 6:55
Lutosław5-Mar-08 6:55 
Do you think of sth like this?:
static void ReadNodeChildsRecursive(KorepetytorMenuNode rootNode, XPathNavigator nav)
{
	XPathNodeIterator iter = nav.SelectChildren(XPathNodeType.Element);
	while (iter.MoveNext()) {
		if (iter.Current.Name == "Node") {
			rootNode.Nodes.Add(KorepetytorMenuNode.FromXmlNavigator(iter.Current));
			ReadNodeChildsRecursive(rootNode.Nodes[rootNode.Nodes.Count - 1], iter.Current);
		}
	}
}


And...

public static KorepetytorMenuNode FromXmlNavigator(XPathNavigator nav)
{
	return new KorepetytorMenuNode() {
		File = nav.GetAttribute("File", "") ?? "",
		Header = nav.GetAttribute("Header", "") ?? "",
		Image = nav.GetAttribute("Image", "") ?? ""
	};
}

Maybe I should post it in my previous message so it would be clear what did I do.

Greetings - Gajatko

Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

AnswerRe: Efficient Xml reading? Pin
#realJSOP6-Mar-08 6:05
mve#realJSOP6-Mar-08 6:05 
GeneralRe: Efficient Xml reading? Pin
Lutosław6-Mar-08 6:43
Lutosław6-Mar-08 6:43 
GeneralRe: Efficient Xml reading? Pin
#realJSOP6-Mar-08 10:33
mve#realJSOP6-Mar-08 10:33 
General.NET standard components Pin
Steve Declerck5-Mar-08 3:46
Steve Declerck5-Mar-08 3:46 
GeneralRe: .NET standard components Pin
Xmen Real 5-Mar-08 4:30
professional Xmen Real 5-Mar-08 4:30 
GeneralRe: .NET standard components Pin
Gareth H5-Mar-08 4:34
Gareth H5-Mar-08 4:34 
GeneralRe: .NET standard components Pin
John_Adams5-Mar-08 5:14
John_Adams5-Mar-08 5:14 
GeneralRe: .NET standard components Pin
Pete O'Hanlon5-Mar-08 8:30
mvePete O'Hanlon5-Mar-08 8:30 
GeneralRe: .NET standard components Pin
Steve Declerck5-Mar-08 23:22
Steve Declerck5-Mar-08 23:22 
QuestionThreads and BeginReceive Pin
Echilon5-Mar-08 3:28
Echilon5-Mar-08 3:28 
GeneralRepost ( new member ) Pin
led mike5-Mar-08 4:52
led mike5-Mar-08 4:52 
GeneralWebcontrol inside a webcontrol Pin
ezazazel5-Mar-08 3:26
ezazazel5-Mar-08 3:26 
GeneralRe: Webcontrol inside a webcontrol Pin
Vasudevan Deepak Kumar5-Mar-08 4:34
Vasudevan Deepak Kumar5-Mar-08 4:34 
GeneralRe: Webcontrol inside a webcontrol Pin
ezazazel5-Mar-08 5:01
ezazazel5-Mar-08 5:01 
GeneralRe: Webcontrol inside a webcontrol Pin
ezazazel5-Mar-08 6:28
ezazazel5-Mar-08 6:28 
GeneralDataGridView & DataSet - Updating the DataBase Pin
half-life5-Mar-08 3:23
half-life5-Mar-08 3:23 
QuestionP/Invoking void * - is this the right way? Pin
Luca Leonardo Scorcia5-Mar-08 2:54
professionalLuca Leonardo Scorcia5-Mar-08 2:54 

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.