Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: DoubleBuffered Pin
HexaDeveloper25-Apr-07 12:39
HexaDeveloper25-Apr-07 12:39 
GeneralRe: DoubleBuffered Pin
HexaDeveloper28-Apr-07 9:24
HexaDeveloper28-Apr-07 9:24 
Questioncarriage return question Pin
JEC456824-Apr-07 6:05
JEC456824-Apr-07 6:05 
QuestionSave file name Pin
Anka_Ame24-Apr-07 5:20
Anka_Ame24-Apr-07 5:20 
AnswerRe: Save file name Pin
netJP12L24-Apr-07 8:55
netJP12L24-Apr-07 8:55 
QuestionDatatables and Database tables Pin
lost in transition 24-Apr-07 5:18
lost in transition 24-Apr-07 5:18 
AnswerRe: Datatables and Database tables Pin
lost in transition 24-Apr-07 6:11
lost in transition 24-Apr-07 6:11 
QuestionCreating a Graphical Relationship Pin
Gareth H24-Apr-07 4:49
Gareth H24-Apr-07 4:49 
Hi,

Basicly, i'm creating a graphical based control that displays the relationships of different data types.

The way i currently do it is to go through 2 data types in a foreach loop, which gives me data that i can use to get other data type structs.

eg - not my code just abit pf pseudo example:

foreach (Node node in MainDataType1)
{
Struct structInfo = node.GetStruct();
Node dataType1 = CreateNode(node, structInfo);

Struct structInfo2 = node.GetStruct();
Node dataType2 = CreateNode(node, structInfo2);

Relationship rel = CreateRel(dataType1, dataType2);
}

The above code would create the "left hand side" of the model. I would then go through the 2nd main data type with the same format of code to create the "right hand side".

The problem is, i need to create objects that arnt related, eg if a relationship is lost between 2 data types for some reason, then i wont create the node, because the struct wont return me any information for it.

I've throught of going through all the data types and creating the nodes after i've done the 2 above peices of code, and checking to see if i've created that node.

eg:

foreach (Node node in MainDataType1)
{
foreach (Node node1 in GraphNodes)
{
If (node1 != node)
{
CreateNode();
}
}
}

The problem i see with the above code is it will be time consuming and not practical as i'm going through all the data types more than once which seems silly to me.

Any ideas?

Regards,
Gareth.

AnswerRe: Creating a Graphical Relationship Pin
Pete O'Hanlon24-Apr-07 5:01
mvePete O'Hanlon24-Apr-07 5:01 
QuestionScript Editor in C# Pin
Adobe200724-Apr-07 4:30
Adobe200724-Apr-07 4:30 
AnswerRe: Script Editor in C# Pin
Pete O'Hanlon24-Apr-07 4:38
mvePete O'Hanlon24-Apr-07 4:38 
AnswerRe: Script Editor in C# Pin
Adobe200724-Apr-07 6:20
Adobe200724-Apr-07 6:20 
QuestionMouse Wheel Pin
The Brazilian One24-Apr-07 4:04
The Brazilian One24-Apr-07 4:04 
AnswerRe: Mouse Wheel Pin
Judah Gabriel Himango24-Apr-07 4:12
sponsorJudah Gabriel Himango24-Apr-07 4:12 
GeneralRe: Mouse Wheel Pin
The Brazilian One24-Apr-07 4:15
The Brazilian One24-Apr-07 4:15 
GeneralRe: Mouse Wheel Pin
The Brazilian One24-Apr-07 4:20
The Brazilian One24-Apr-07 4:20 
GeneralRe: Mouse Wheel Pin
Judah Gabriel Himango24-Apr-07 4:40
sponsorJudah Gabriel Himango24-Apr-07 4:40 
GeneralRe: Mouse Wheel Pin
The Brazilian One24-Apr-07 5:57
The Brazilian One24-Apr-07 5:57 
GeneralRe: Mouse Wheel Pin
Judah Gabriel Himango24-Apr-07 8:18
sponsorJudah Gabriel Himango24-Apr-07 8:18 
QuestionDeploying Visual C# express application Fails on target cpu Pin
kourvoisier24-Apr-07 3:59
kourvoisier24-Apr-07 3:59 
AnswerRe: Deploying Visual C# express application Fails on target cpu Pin
Pete O'Hanlon24-Apr-07 4:20
mvePete O'Hanlon24-Apr-07 4:20 
GeneralRe: Deploying Visual C# express application Fails on target cpu Pin
kourvoisier24-Apr-07 7:35
kourvoisier24-Apr-07 7:35 
AnswerRe: Deploying Visual C# express application Fails on target cpu Pin
dbrenth24-Apr-07 7:51
dbrenth24-Apr-07 7:51 
GeneralRe: Deploying Visual C# express application Fails on target cpu Pin
kourvoisier24-Apr-07 9:59
kourvoisier24-Apr-07 9:59 
GeneralRe: Deploying Visual C# express application Fails on target cpu Pin
dbrenth24-Apr-07 10:39
dbrenth24-Apr-07 10:39 

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.