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

C#

 
QuestionRe:Image Buttons on my webApplication in C# Pin
raju000318-Feb-09 16:43
raju000318-Feb-09 16:43 
AnswerRe:Image Buttons on my webApplication in C# Pin
Dewald18-Feb-09 23:10
Dewald18-Feb-09 23:10 
QuestionWindows Shortcuts and .NET Pin
bobert_smallgeek18-Feb-09 15:01
bobert_smallgeek18-Feb-09 15:01 
AnswerRe: Windows Shortcuts and .NET Pin
EliottA18-Feb-09 15:49
EliottA18-Feb-09 15:49 
AnswerRe: Windows Shortcuts and .NET Pin
N a v a n e e t h18-Feb-09 16:13
N a v a n e e t h18-Feb-09 16:13 
AnswerRe: Windows Shortcuts and .NET Pin
«_Superman_»18-Feb-09 18:17
professional«_Superman_»18-Feb-09 18:17 
QuestionCreating parent/child relationships in an array of data Pin
rstrokur18-Feb-09 12:59
rstrokur18-Feb-09 12:59 
AnswerRe: Creating parent/child relationships in an array of data Pin
Guffa18-Feb-09 13:27
Guffa18-Feb-09 13:27 
You use a reference. You have already used them, an array of Event is actually an array of references to Event objects.

You can use a parent referene:
public class Event {

   public Event Parent { get; set; }

   // some more class members

}

Or you can have a list of children:
public class Event {

   private List<event> _children = new List<event>();

   public List<event> Children { get { return _children; } }

   // some more class members

}</event></event></event>

Or you can even have both a parent reference and a childrens list. It depends on how you are going to use it. If you have only a parent reference you have to loop through the array to find a child, and if you only have a childrens list you have to loop through the array and loop through the children of each item to find a parent.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Creating parent/child relationships in an array of data [modified] Pin
Calin Tatar18-Feb-09 13:30
Calin Tatar18-Feb-09 13:30 
QuestionControls pre-caching Pin
Member 183214618-Feb-09 12:37
Member 183214618-Feb-09 12:37 
AnswerRe: Controls pre-caching Pin
Luc Pattyn18-Feb-09 13:05
sitebuilderLuc Pattyn18-Feb-09 13:05 
QuestionConnect to remote SQL Server Pin
Gindi Bar Yahav18-Feb-09 11:01
Gindi Bar Yahav18-Feb-09 11:01 
AnswerRe: Connect to remote SQL Server Pin
Luis Alonso Ramos18-Feb-09 11:39
Luis Alonso Ramos18-Feb-09 11:39 
AnswerRe: Connect to remote SQL Server Pin
EliottA18-Feb-09 11:41
EliottA18-Feb-09 11:41 
GeneralRe: Connect to remote SQL Server Pin
Gindi Bar Yahav18-Feb-09 19:25
Gindi Bar Yahav18-Feb-09 19:25 
GeneralRe: Connect to remote SQL Server Pin
EliottA18-Feb-09 19:29
EliottA18-Feb-09 19:29 
Questiondatabinding + INotifyPropertyChanged Pin
jogisarge18-Feb-09 9:58
jogisarge18-Feb-09 9:58 
AnswerRe: databinding + INotifyPropertyChanged Pin
ABitSmart18-Feb-09 18:22
ABitSmart18-Feb-09 18:22 
QuestionSupport to create graph editor ? [modified] Pin
GuimaSun18-Feb-09 9:24
GuimaSun18-Feb-09 9:24 
AnswerRe: Support to create graph editor ? Pin
Henry Minute18-Feb-09 10:18
Henry Minute18-Feb-09 10:18 
QuestionDynamically create datagrid with prepopulated text boxes Pin
jullesbonnot18-Feb-09 8:20
jullesbonnot18-Feb-09 8:20 
AnswerRe: Dynamically create datagrid with prepopulated text boxes Pin
Calin Tatar18-Feb-09 9:14
Calin Tatar18-Feb-09 9:14 
GeneralRe: Dynamically create datagrid with prepopulated text boxes Pin
Calin Tatar18-Feb-09 9:22
Calin Tatar18-Feb-09 9:22 
QuestionJagged array initialization Pin
t_feras18-Feb-09 7:37
t_feras18-Feb-09 7:37 
AnswerRe: Jagged array initialization Pin
harold aptroot18-Feb-09 10:12
harold aptroot18-Feb-09 10:12 

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.