Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
GeneralRe: send data from google api v3 javascript to c# Pin
mrx10011-May-12 10:50
mrx10011-May-12 10:50 
GeneralRe: send data from google api v3 javascript to c# Pin
loyal ginger14-May-12 3:33
loyal ginger14-May-12 3:33 
Questiondrawing on one form and display it on another form Pin
borrasanjay10-May-12 9:44
borrasanjay10-May-12 9:44 
AnswerRe: drawing on one form and display it on another form Pin
Luc Pattyn10-May-12 11:15
sitebuilderLuc Pattyn10-May-12 11:15 
GeneralRe: drawing on one form and display it on another form Pin
borrasanjay10-May-12 14:04
borrasanjay10-May-12 14:04 
AnswerRe: drawing on one form and display it on another form Pin
Luc Pattyn10-May-12 14:26
sitebuilderLuc Pattyn10-May-12 14:26 
GeneralRe: drawing on one form and display it on another form Pin
Ravi Bhavnani11-May-12 9:05
professionalRavi Bhavnani11-May-12 9:05 
QuestionHow To Move An Item In A Hierarchy Pin
Kevin Marois10-May-12 8:14
professionalKevin Marois10-May-12 8:14 
0down votefavorite
I have a collection of NodeModel objects:

public class NodeModel : ViewModelBase 
{ 
    public Guid Id { get; set; } 
    public string Caption { get; set; } 
    public string Description { get; set; } 
    public NodeType Type { get; set; } 
    public List<NodeModel> Children { get; set; } 
} 


I need to provide Move Up and Move Down functions. To move an item up in the collection, it seems like I would need to know the the item's parent.

True is, I'm not really sure how to implement this. Anyone done this? Can you point me in the right direction?

Thanks
If it's not broken, fix it until it is

AnswerRe: How To Move An Item In A Hierarchy Pin
Not Active10-May-12 8:20
mentorNot Active10-May-12 8:20 
GeneralRe: How To Move An Item In A Hierarchy Pin
BillWoodruff11-May-12 16:08
professionalBillWoodruff11-May-12 16:08 
AnswerRe: How To Move An Item In A Hierarchy Pin
Luc Pattyn10-May-12 10:45
sitebuilderLuc Pattyn10-May-12 10:45 
AnswerMessage Removed Pin
10-May-12 10:54
SledgeHammer0110-May-12 10:54 
GeneralRe: How To Move An Item In A Hierarchy Pin
Kevin Marois10-May-12 13:03
professionalKevin Marois10-May-12 13:03 
AnswerRe: How To Move An Item In A Hierarchy Pin
Peter_in_278010-May-12 16:26
professionalPeter_in_278010-May-12 16:26 
AnswerRe: How To Move An Item In A Hierarchy Pin
BobJanova11-May-12 4:02
BobJanova11-May-12 4:02 
GeneralRe: How To Move An Item In A Hierarchy Pin
Kevin Marois11-May-12 8:12
professionalKevin Marois11-May-12 8:12 
GeneralRe: How To Move An Item In A Hierarchy Pin
BobJanova14-May-12 4:55
BobJanova14-May-12 4:55 
AnswerRe: How To Move An Item In A Hierarchy Pin
BillWoodruff12-May-12 5:09
professionalBillWoodruff12-May-12 5:09 
QuestionAdding an item to a sharepoint list. Pin
MitchG92_2410-May-12 4:07
MitchG92_2410-May-12 4:07 
AnswerRe: Adding an item to a sharepoint list. Pin
Not Active10-May-12 6:16
mentorNot Active10-May-12 6:16 
QuestionConvert vb.net to c#.net Pin
Jaydev Jangid10-May-12 0:46
Jaydev Jangid10-May-12 0:46 
AnswerRe: Convert vb.net to c#.net Pin
Richard MacCutchan10-May-12 1:14
mveRichard MacCutchan10-May-12 1:14 
AnswerRe: Convert vb.net to c#.net Pin
Sandeep Mewara10-May-12 4:46
mveSandeep Mewara10-May-12 4:46 
QuestionRemove Object From Hierarchical Collection Pin
Kevin Marois9-May-12 11:56
professionalKevin Marois9-May-12 11:56 
AnswerRe: Remove Object From Hierarchical Collection Pin
SledgeHammer019-May-12 13:11
SledgeHammer019-May-12 13:11 

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.