Click here to Skip to main content
15,912,312 members
Home / Discussions / C#
   

C#

 
GeneralRe: A problem with System.Drawing.Drawing2D Pin
Pedram Behroozi30-Nov-08 8:29
Pedram Behroozi30-Nov-08 8:29 
GeneralRe: A problem with System.Drawing.Drawing2D Pin
Guffa30-Nov-08 9:10
Guffa30-Nov-08 9:10 
GeneralRe: A problem with System.Drawing.Drawing2D Pin
Pedram Behroozi30-Nov-08 9:49
Pedram Behroozi30-Nov-08 9:49 
QuestionGraphics ? Pin
nlowdon29-Nov-08 8:49
nlowdon29-Nov-08 8:49 
AnswerRe: Graphics ? Pin
Christian Graus29-Nov-08 13:47
protectorChristian Graus29-Nov-08 13:47 
GeneralRe: Graphics ? Pin
electriac30-Nov-08 6:44
electriac30-Nov-08 6:44 
QuestionHow can I implement this complex object Pin
mbudak29-Nov-08 1:16
mbudak29-Nov-08 1:16 
AnswerRe: How can I implement this complex object Pin
Chris Copeland29-Nov-08 3:19
mveChris Copeland29-Nov-08 3:19 
Something like..

C#
public class ExamFileBase
{
    public string Title { get; set; }
    public string FileName { get; set; }
    public List<exambase> Exam { get; set; };

    public ExamFileBase()
    {
        Title = "Default title";
        FileName = "default_filename.mfe";
        Exam = new List<exambase>();
    }
}

public class ExamBase
{
    public string ExamName { get; set; }
    public List<questionbase> Question { get; set; }

    public ExamBase()
    {
        ExamName = "Default exam";
        Question = new List<questionbase>();
    }
}

public class QuestionBase
{
    public string Remark { get; set; }
    public string Type { get; set; }
}

</questionbase></questionbase></exambase></exambase>


Only problem is, for the List<t> properties, you'd have to initiate a class before accessing it.
IE:

C#
ExamFileBase ExamFile = new ExamFileBase();
ExamFile.Exam.Add(new ExamBase());


Unless you made them static so each was initialized auto-matically.
AnswerRe: How can I implement this complex object Pin
Dag Oystein Johansen29-Nov-08 4:08
Dag Oystein Johansen29-Nov-08 4:08 
AnswerRe: How can I implement this complex object Pin
Dominic Goulet1-Dec-08 1:00
Dominic Goulet1-Dec-08 1:00 
Questionaddin to IE Pin
Maverickcool29-Nov-08 1:06
Maverickcool29-Nov-08 1:06 
Questionassembly won't run from network folder. Pin
swjam29-Nov-08 0:23
swjam29-Nov-08 0:23 
AnswerRe: assembly won't run from network folder. Pin
Wendelius29-Nov-08 0:32
mentorWendelius29-Nov-08 0:32 
AnswerRe: assembly won't run from network folder. Pin
User 665829-Nov-08 0:37
User 665829-Nov-08 0:37 
AnswerRe: assembly won't run from network folder. Pin
Dave Kreskowiak29-Nov-08 5:01
mveDave Kreskowiak29-Nov-08 5:01 
QuestionScreen Capture Pin
krinaljariwala28-Nov-08 23:49
krinaljariwala28-Nov-08 23:49 
AnswerRe: Screen Capture Pin
Christian Graus29-Nov-08 13:49
protectorChristian Graus29-Nov-08 13:49 
GeneralRe: Screen Capture Pin
krinaljariwala29-Nov-08 20:54
krinaljariwala29-Nov-08 20:54 
QuestionScreen Handling Pin
krinaljariwala28-Nov-08 23:22
krinaljariwala28-Nov-08 23:22 
QuestionScreen Capture Pin
krinaljariwala28-Nov-08 22:49
krinaljariwala28-Nov-08 22:49 
Questionwhere have vnc OpenSource? Pin
lockepeak28-Nov-08 22:32
lockepeak28-Nov-08 22:32 
AnswerRe: where have vnc OpenSource? Pin
Thomas Weller28-Nov-08 23:23
Thomas Weller28-Nov-08 23:23 
AnswerRe: where have vnc OpenSource? Pin
Garth J Lancaster28-Nov-08 23:25
professionalGarth J Lancaster28-Nov-08 23:25 
Questiongenerating XML file issue Pin
George_George28-Nov-08 21:49
George_George28-Nov-08 21:49 
AnswerRe: generating XML file issue Pin
Wendelius28-Nov-08 22:27
mentorWendelius28-Nov-08 22:27 

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.