Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: hello friend :) Pin
youshy11-Dec-12 8:48
youshy11-Dec-12 8:48 
SuggestionRe: hello friend :) Pin
youshy11-Dec-12 9:07
youshy11-Dec-12 9:07 
AnswerRe: hello friend :) Pin
fjdiewornncalwe11-Dec-12 10:34
professionalfjdiewornncalwe11-Dec-12 10:34 
AnswerRe: hello friend :) Pin
Pete O'Hanlon11-Dec-12 8:22
mvePete O'Hanlon11-Dec-12 8:22 
GeneralRe: hello friend :) Pin
youshy11-Dec-12 9:12
youshy11-Dec-12 9:12 
GeneralMessage Removed Pin
12-Dec-12 2:50
professionalN_tro_P12-Dec-12 2:50 
GeneralRe: hello friend :) Pin
Pete O'Hanlon12-Dec-12 2:53
mvePete O'Hanlon12-Dec-12 2:53 
QuestionBest way to do this? Pin
SledgeHammer0111-Dec-12 4:55
SledgeHammer0111-Dec-12 4:55 
Really simplified, I have this object:

enum ObjectType
{
Type1,
Type2
}

class SomeClass
{
string someProp;
ObjectType type;
}

Specs call for the right pane to be a flat list in a list control of ALL SomeClass objects. Left pane will be a treeview grouped by ObjectType. I.e.

ObjectType1
SomeObject1
SomeObject2
SomeObject3
ObjectType2
SomeObject4
SomeObject5

Obviously, if the user changes the type of SomeObject5 from ObjectType2 to ObjectType1, the tree on the left should re-arrange itself appropriately.

This app is WPF / MVVM, so keep that in mind.

I know I can do some ghetto hack where the VM for the right pane just grabs its own copy of the hierachial list and flattens it and displays that while the left pane just displays the hierachial list. Or vice versa. List is stored as a flat list and the left pane builds a hierachial collection.

Not liking either of those ideas because in the WPF world, you really need to be operating on the same exact instance of an object so change notification works.

I guess what I'm thinking is some kind of hierachial structure that also has a "FlatView" and operating on the hierachial methods will auto sync the flat view and vice versa. Basically, I'd like the left pane and the right pane to operate on the same exact collection and the same exact objects, but just display them differently.
AnswerRe: Best way to do this? Pin
Gerry Schmitz11-Dec-12 12:28
mveGerry Schmitz11-Dec-12 12:28 
GeneralRe: Best way to do this? Pin
SledgeHammer0111-Dec-12 13:21
SledgeHammer0111-Dec-12 13:21 
GeneralRe: Best way to do this? Pin
Gerry Schmitz11-Dec-12 14:05
mveGerry Schmitz11-Dec-12 14:05 
GeneralRe: Best way to do this? Pin
SledgeHammer0111-Dec-12 14:25
SledgeHammer0111-Dec-12 14:25 
Questiondevelop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)11-Dec-12 3:40
Firoz(Pappu)11-Dec-12 3:40 
AnswerRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Richard MacCutchan11-Dec-12 5:00
mveRichard MacCutchan11-Dec-12 5:00 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)11-Dec-12 5:37
Firoz(Pappu)11-Dec-12 5:37 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Pete O'Hanlon11-Dec-12 6:01
mvePete O'Hanlon11-Dec-12 6:01 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)11-Dec-12 20:30
Firoz(Pappu)11-Dec-12 20:30 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Pete O'Hanlon11-Dec-12 20:37
mvePete O'Hanlon11-Dec-12 20:37 
AnswerRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Jay Nardev12-Dec-12 21:43
Jay Nardev12-Dec-12 21:43 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)12-Dec-12 22:17
Firoz(Pappu)12-Dec-12 22:17 
QuestionC# javascript communication Pin
tashee11-Dec-12 2:12
tashee11-Dec-12 2:12 
AnswerRe: C# javascript communication Pin
V.11-Dec-12 3:40
professionalV.11-Dec-12 3:40 
QuestionWCF Services in a multi threaded application results in Oracle Connection request Timed out error Pin
rajaron11-Dec-12 0:16
rajaron11-Dec-12 0:16 
Questionimage from access database in c# Pin
kojoam110-Dec-12 4:10
kojoam110-Dec-12 4:10 
QuestionRe: image from access database in c# Pin
Richard MacCutchan10-Dec-12 21:29
mveRichard MacCutchan10-Dec-12 21:29 

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.