Click here to Skip to main content
16,009,506 members
Home / Discussions / C#
   

C#

 
QuestionC# version of C++ code Pin
gordon305618-Jul-10 16:06
gordon305618-Jul-10 16:06 
AnswerRe: C# version of C++ code [modified] Pin
JF201518-Jul-10 18:08
JF201518-Jul-10 18:08 
AnswerRe: C# version of C++ code Pin
Dave Doknjas19-Jul-10 10:52
Dave Doknjas19-Jul-10 10:52 
QuestionHow to draw and smooth Polyline. Pin
tranvantinhpt18-Jul-10 16:05
tranvantinhpt18-Jul-10 16:05 
AnswerRe: How to draw and smooth Polyline. Pin
Abhinav S18-Jul-10 18:24
Abhinav S18-Jul-10 18:24 
GeneralRe: How to draw and smooth Polyline. Pin
tranvantinhpt18-Jul-10 18:42
tranvantinhpt18-Jul-10 18:42 
QuestionCopying table Pin
humayunlalzad18-Jul-10 13:51
humayunlalzad18-Jul-10 13:51 
AnswerRe: Copying table Pin
Mycroft Holmes18-Jul-10 14:29
professionalMycroft Holmes18-Jul-10 14:29 
GeneralRe: Copying table Pin
harold aptroot18-Jul-10 14:38
harold aptroot18-Jul-10 14:38 
GeneralRe: Copying table Pin
humayunlalzad18-Jul-10 17:53
humayunlalzad18-Jul-10 17:53 
AnswerRe: Copying table Pin
PIEBALDconsult18-Jul-10 15:56
mvePIEBALDconsult18-Jul-10 15:56 
AnswerRe: Copying table Pin
Abhinav S18-Jul-10 18:25
Abhinav S18-Jul-10 18:25 
GeneralRe: Copying table Pin
humayunlalzad18-Jul-10 18:42
humayunlalzad18-Jul-10 18:42 
GeneralRe: Copying table Pin
PIEBALDconsult19-Jul-10 3:17
mvePIEBALDconsult19-Jul-10 3:17 
GeneralRe: Copying table Pin
humayunlalzad19-Jul-10 12:28
humayunlalzad19-Jul-10 12:28 
GeneralRe: Copying table Pin
PIEBALDconsult19-Jul-10 15:42
mvePIEBALDconsult19-Jul-10 15:42 
GeneralRe: Copying table Pin
humayunlalzad24-Jul-10 5:47
humayunlalzad24-Jul-10 5:47 
GeneralRe: Copying table Pin
PIEBALDconsult24-Jul-10 5:49
mvePIEBALDconsult24-Jul-10 5:49 
QuestionXml validation in c# Pin
kunthavai18-Jul-10 13:16
kunthavai18-Jul-10 13:16 
AnswerRe: Xml validation in c# Pin
Eslam Afifi18-Jul-10 13:37
Eslam Afifi18-Jul-10 13:37 
GeneralRe: Xml validation in c# Pin
kunthavai19-Jul-10 4:29
kunthavai19-Jul-10 4:29 
Questionsearch in document's.. Pin
noamtzu0018-Jul-10 10:30
noamtzu0018-Jul-10 10:30 
AnswerRe: search in document's.. Pin
venomation18-Jul-10 11:30
venomation18-Jul-10 11:30 
AnswerRe: search in document's.. Pin
Pete O'Hanlon18-Jul-10 23:09
mvePete O'Hanlon18-Jul-10 23:09 
QuestionA question about abstraction... Pin
venomation18-Jul-10 8:10
venomation18-Jul-10 8:10 
I am making a game in XNA and I have a component that accepts some parameters (rows,columns and tile size) and renders a two-dimensional grid where I like (its visual).

As I have started to plan my software I know that some of the Grid settings such as "Tile Width/Height" may need to be read from other objects later on such as a Windows form that can change the grid settings...

I have read that a "interface between components" is good practice so would any one advise me to create a class that allows another class to receive data from the grid?

Such functionality :

GetTileWidth,GetTileHeight,GetRows .....

So for example:

GridEditorForm ---->gets the tile height from ---> GridDetails --> gets tile height from ---> Grid

instead of:

GridEditorForm ---> gets the tile height from ---> Grid

?

Another idea I had was to have some kind of "Struct" that stores the grid data that may be read from other objects and make an interface to pass about its information?

Such as:
struct GridDetails:
tilewidth,tile height,rows
....


Thanks Big Grin | :-D

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.