Click here to Skip to main content
15,893,644 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex for String.Contains Pin
Manfred Rudolf Bihy11-May-12 0:28
professionalManfred Rudolf Bihy11-May-12 0:28 
GeneralRe: Regex for String.Contains Pin
PIEBALDconsult11-May-12 3:24
mvePIEBALDconsult11-May-12 3:24 
AnswerRe: Regex for String.Contains Pin
OriginalGriff11-May-12 3:52
mveOriginalGriff11-May-12 3:52 
GeneralRe: Regex for String.Contains Pin
amrok2amrokk11-May-12 4:28
amrok2amrokk11-May-12 4:28 
GeneralRe: Regex for String.Contains Pin
OriginalGriff11-May-12 4:55
mveOriginalGriff11-May-12 4:55 
GeneralRe: Regex for String.Contains Pin
amrok2amrokk11-May-12 5:07
amrok2amrokk11-May-12 5:07 
GeneralRe: Regex for String.Contains Pin
PIEBALDconsult11-May-12 5:30
mvePIEBALDconsult11-May-12 5:30 
GeneralRe: Regex for String.Contains Pin
amrok2amrokk11-May-12 5:59
amrok2amrokk11-May-12 5:59 
GeneralRe: Regex for String.Contains Pin
PIEBALDconsult11-May-12 5:09
mvePIEBALDconsult11-May-12 5:09 
GeneralRe: Regex for String.Contains Pin
jschell11-May-12 13:46
jschell11-May-12 13:46 
AnswerRe: Regex for String.Contains Pin
BobJanova11-May-12 3:58
BobJanova11-May-12 3:58 
QuestionGraphicsDeviceServce Pin
Philip Solomon See10-May-12 13:08
Philip Solomon See10-May-12 13:08 
AnswerRe: GraphicsDeviceServce Pin
Richard MacCutchan10-May-12 22:02
mveRichard MacCutchan10-May-12 22:02 
Questionsend data from google api v3 javascript to c# Pin
mrx10010-May-12 11:12
mrx10010-May-12 11:12 
AnswerRe: send data from google api v3 javascript to c# Pin
Gerry Schmitz10-May-12 13:01
mveGerry Schmitz10-May-12 13:01 
AnswerRe: send data from google api v3 javascript to c# Pin
loyal ginger11-May-12 4:34
loyal ginger11-May-12 4:34 
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 

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.