c# - Treeview consistency check(s) -


i have gui treeviewadv , data in listbox can dragged , dropped onto nodes in tree create hierarchy. users can define new nodes. tree manipulated in memory can committed backend user. each node saved object relations other objects.

the question there ideas on how run consistency checks on tree when user drags , drops new nodes. consistency checks like: has been added node before.

i thought of options needs cover previous manipulation (saved in database) , current manipulation:

1) run in memory, unfortunately in order have complete overview mean expand/collapse entire tree @ least once in order initialize nodes, smaller database round trips when initializing of nodes.

2) use current initialized gui nodes , run check against database previous relations saved, have larger overhead in database round trips.

3) read in current database configuration during gui initialization , cache needed run consistency checks. use , current tree. should result in better user experience think.

any other ideas?

thank you.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -