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

C#

 
AnswerRe: Possible to map printers from print server with C#? Pin
chitosan8-Feb-09 4:35
chitosan8-Feb-09 4:35 
QuestionUnauthorizedAccessException.. Pin
mahi2435-May-08 14:48
mahi2435-May-08 14:48 
AnswerRe: UnauthorizedAccessException.. Pin
Christian Graus5-May-08 15:07
protectorChristian Graus5-May-08 15:07 
GeneralRe: UnauthorizedAccessException.. Pin
mahi2435-May-08 16:55
mahi2435-May-08 16:55 
QuestionCompiling out debugging statements - any easy way? Pin
K.L.K5-May-08 14:35
K.L.K5-May-08 14:35 
AnswerRe: Compiling out debugging statements - any easy way? Pin
Christian Graus5-May-08 15:06
protectorChristian Graus5-May-08 15:06 
AnswerRe: Compiling out debugging statements - any easy way? Pin
Roger Alsing5-May-08 18:51
Roger Alsing5-May-08 18:51 
Questionclass layout Pin
Mike Bentzen5-May-08 13:54
Mike Bentzen5-May-08 13:54 
Hello, I am trying to write an application that will be able to manage an attendance list. It will talk back to a database and any updates made to the attendance list, will update the database.

So basically, there are students and classes.
each class has students.

I want to be able to maintain a list of students and a list of classes.
How should I go about doing this?

I am thinking of having the classes:
student - defines a student object
class - defines a class object
- list<student>
studentList - contains a list of ALL students
- list<student>
classList - contains a list of ALL classes
- list<class>

I would like to retrieve the student list of a particular class where should the method for this go?
Should it go in classList? maybe getStudents(int classID)
or class? just getstudents()?

i want to also be able to add students to a particular class from studentList.
where should the addStudentToClass method go? in the class or in the classList?
If it belongs in class, how do you get access to the studentList? do I have to pass the studentList as a variable through the constructor when i create the class? I know I can do it by making the studentList a static class then i can access the method by students.Add(studentList.GetStudentByID(int studentID))?

I would appreciate it greatly if someone could explain the levels of access and what classes should be able to access what by using the scenario above.
Thank you,

Kind Regards,
Mike </class></student></student>
AnswerRe: class layout Pin
carbon_golem6-May-08 3:01
carbon_golem6-May-08 3:01 
QuestionWhat does the ?? operator do in C# ? Pin
Link8885-May-08 13:34
Link8885-May-08 13:34 
AnswerRe: What does the ?? operator do in C# ? Pin
Jimmanuel5-May-08 13:58
Jimmanuel5-May-08 13:58 
GeneralRe: What does the ?? operator do in C# ? Pin
MarkB7775-May-08 19:06
MarkB7775-May-08 19:06 
QuestionEvent in a Thread Pin
QzRz5-May-08 10:49
QzRz5-May-08 10:49 
AnswerRe: Event in a Thread Pin
Jimmanuel5-May-08 11:17
Jimmanuel5-May-08 11:17 
AnswerRe: Event in a Thread Pin
K.L.K5-May-08 14:26
K.L.K5-May-08 14:26 
QuestionDataGridView null row Pin
tjschilling5-May-08 10:12
tjschilling5-May-08 10:12 
AnswerRe: DataGridView null row Pin
Ennis Ray Lynch, Jr.5-May-08 10:32
Ennis Ray Lynch, Jr.5-May-08 10:32 
GeneralRe: DataGridView null row Pin
tjschilling5-May-08 11:24
tjschilling5-May-08 11:24 
QuestionHow to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
ioanap_855-May-08 8:59
ioanap_855-May-08 8:59 
AnswerRe: How to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
SomeGuyThatIsMe5-May-08 9:34
SomeGuyThatIsMe5-May-08 9:34 
AnswerRe: How to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
Dave Kreskowiak5-May-08 9:34
mveDave Kreskowiak5-May-08 9:34 
QuestionUse a maked textbox to limit entry to some char Pin
baranils5-May-08 8:56
baranils5-May-08 8:56 
AnswerRe: Use a maked textbox to limit entry to some char Pin
#realJSOP5-May-08 9:51
mve#realJSOP5-May-08 9:51 
GeneralRe: Use a maked textbox to limit entry to some char Pin
baranils5-May-08 10:07
baranils5-May-08 10:07 
GeneralRe: Use a maked textbox to limit entry to some char Pin
#realJSOP5-May-08 11:03
mve#realJSOP5-May-08 11:03 

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.