Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerDouble Post - Please Ignore Pin
Giorgi Dalakishvili13-May-08 0:16
mentorGiorgi Dalakishvili13-May-08 0:16 
QuestionConvolution Kernel Pin
Abdul Rahman Hamidy12-May-08 23:58
Abdul Rahman Hamidy12-May-08 23:58 
AnswerDouble Post - Please Ignore Pin
Giorgi Dalakishvili13-May-08 0:17
mentorGiorgi Dalakishvili13-May-08 0:17 
Questioncoding for a insert data to a table Pin
oshadhi12-May-08 23:42
oshadhi12-May-08 23:42 
AnswerRe: coding for a insert data to a table Pin
Rupesh Kumar Swami13-May-08 0:06
Rupesh Kumar Swami13-May-08 0:06 
AnswerRe: coding for a insert data to a table Pin
Christian Graus13-May-08 0:06
protectorChristian Graus13-May-08 0:06 
AnswerRe: coding for a insert data to a table Pin
Abdul Rahman Hamidy13-May-08 0:09
Abdul Rahman Hamidy13-May-08 0:09 
QuestionLoad WPF TreeView items in background Pin
Lutosław12-May-08 23:17
Lutosław12-May-08 23:17 
I want to load treeview nodes in background. Information about them are stored in an xml file
<node some="" info="">
<more info="" />
<subnode sth="" else="">
</subnode>
</node>
etc.
This file can be quite big and computers can be quite slow. So, I want to have a repsonding UI and TreeView items should appear one after another.

Of course, I did something, but it is dangerously close to a WTF zone. That's it:

1. Start some Load method in a new thread.
in the Load method:
2. Handle Menu.OnNodeLoaded event -&gt; menu_OnNodeLoaded.
3. Call a function which reads data from a file, sth like. Menu.FromXml(...).
in that function:
4. Iterate throught an xml file.
5. Create a MenuNode object, which contain a Path property, e.g. "node/subnode"
6. Fire OnNodeLoaded.
in Window.menu_OnNodeLoaded:
7. Iterate through menuNode.Path to find a TreeViewItem place where a new TreeViewItem should be added.
8. Create a TreeViewItem and add it to the treeView.

How to do that better?

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.
QuestionDrawLine() does not work Pin
nilam247712-May-08 22:53
nilam247712-May-08 22:53 
AnswerRe: DrawLine() does not work Pin
Christian Graus12-May-08 23:01
protectorChristian Graus12-May-08 23:01 
QuestionRe: DrawLine() does not work Pin
nilam247712-May-08 23:07
nilam247712-May-08 23:07 
AnswerRe: DrawLine() does not work Pin
Christian Graus12-May-08 23:11
protectorChristian Graus12-May-08 23:11 
QuestionAdd tool tip on graphic objects Pin
cooltoad12312-May-08 22:44
cooltoad12312-May-08 22:44 
AnswerRe: Add tool tip on graphic objects Pin
Gareth H12-May-08 22:52
Gareth H12-May-08 22:52 
AnswerRe: Add tool tip on graphic objects Pin
Christian Graus12-May-08 23:02
protectorChristian Graus12-May-08 23:02 
Questiondisapper format of richedit in microsoft word Pin
ham rez12-May-08 22:37
ham rez12-May-08 22:37 
AnswerRe: disapper format of richedit in microsoft word Pin
Christian Graus12-May-08 23:02
protectorChristian Graus12-May-08 23:02 
QuestionReceiving "raw" print jobs Pin
User 137680012-May-08 22:04
User 137680012-May-08 22:04 
AnswerRe: Receiving "raw" print jobs Pin
m@u12-May-08 22:45
m@u12-May-08 22:45 
GeneralRe: Receiving "raw" print jobs Pin
User 137680012-May-08 23:36
User 137680012-May-08 23:36 
QuestionCurrent directory issue to load a assembly thru reflection Pin
shivapriyak12-May-08 21:40
shivapriyak12-May-08 21:40 
AnswerRe: Current directory issue to load a assembly thru reflection Pin
natsuyaki12-May-08 21:50
natsuyaki12-May-08 21:50 
GeneralRe: Current directory issue to load a assembly thru reflection Pin
shivapriyak12-May-08 23:25
shivapriyak12-May-08 23:25 
AnswerRe: Current directory issue to load a assembly thru reflection Pin
Spunky Coder12-May-08 21:55
Spunky Coder12-May-08 21:55 
GeneralRe: Current directory issue to load a assembly thru reflection Pin
shivapriyak12-May-08 23:20
shivapriyak12-May-08 23:20 

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.