Click here to Skip to main content
15,896,522 members
Home / Discussions / C#
   

C#

 
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
AnswerRe: A question about abstraction... Pin
Luc Pattyn18-Jul-10 8:43
sitebuilderLuc Pattyn18-Jul-10 8:43 
GeneralRe: A question about abstraction... Pin
venomation18-Jul-10 9:00
venomation18-Jul-10 9:00 
QuestionGetting "Input array is longer than the number of columns in this table." Pin
Kevin Marois18-Jul-10 7:33
professionalKevin Marois18-Jul-10 7:33 
AnswerRe: Getting "Input array is longer than the number of columns in this table." Pin
Luc Pattyn18-Jul-10 8:02
sitebuilderLuc Pattyn18-Jul-10 8:02 
GeneralRe: Getting "Input array is longer than the number of columns in this table." Pin
Kevin Marois18-Jul-10 8:36
professionalKevin Marois18-Jul-10 8:36 
AnswerRe: Getting "Input array is longer than the number of columns in this table." PinPopular
Rob Graham18-Jul-10 8:19
Rob Graham18-Jul-10 8:19 
Questionhelp: deploy c# windows application with sql server database Pin
pradeepwithu18-Jul-10 6:56
pradeepwithu18-Jul-10 6:56 
AnswerRe: help: deploy c# windows application with sql server database [modified] Pin
I Believe In GOD18-Jul-10 11:32
I Believe In GOD18-Jul-10 11:32 
Questioninheritance of atribute. Pin
prasadbuddhika18-Jul-10 1:43
prasadbuddhika18-Jul-10 1:43 
AnswerRe: inheritance of atribute. PinPopular
OriginalGriff18-Jul-10 1:50
mveOriginalGriff18-Jul-10 1:50 
GeneralRe: inheritance of atribute. Pin
Abhinav S18-Jul-10 6:42
Abhinav S18-Jul-10 6:42 
GeneralRe: inheritance of atribute. Pin
prasadbuddhika18-Jul-10 7:09
prasadbuddhika18-Jul-10 7:09 
QuestionProblem to update hierarchical data and display it in treeView. Pin
hdv21217-Jul-10 22:27
hdv21217-Jul-10 22:27 
AnswerRe: Problem to update hierarchical data and display it in treeView. Pin
Mycroft Holmes18-Jul-10 14:44
professionalMycroft Holmes18-Jul-10 14:44 
GeneralRe: Problem to update hierarchical data and display it in treeView. Pin
hdv21220-Jul-10 11:42
hdv21220-Jul-10 11:42 
Generalprogram c# Pin
danhco17-Jul-10 22:14
danhco17-Jul-10 22:14 
GeneralRe: program c# PinPopular
OriginalGriff17-Jul-10 22:30
mveOriginalGriff17-Jul-10 22:30 

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.