Click here to Skip to main content
16,004,806 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionPatterns Pin
CodingYoshi23-Oct-08 3:57
CodingYoshi23-Oct-08 3:57 
AnswerRe: Patterns Pin
Leslie Sanford23-Oct-08 11:52
Leslie Sanford23-Oct-08 11:52 
AnswerRe: Patterns Pin
Mark Churchill23-Oct-08 13:36
Mark Churchill23-Oct-08 13:36 
GeneralRe: Patterns Pin
CodingYoshi24-Oct-08 3:38
CodingYoshi24-Oct-08 3:38 
GeneralRe: Patterns Pin
Urs Enzler2-Nov-08 0:30
Urs Enzler2-Nov-08 0:30 
GeneralRe: Patterns Pin
Mark Churchill2-Nov-08 14:22
Mark Churchill2-Nov-08 14:22 
GeneralRe: Patterns Pin
Urs Enzler2-Nov-08 20:56
Urs Enzler2-Nov-08 20:56 
AnswerRe: Patterns Pin
Samer Aburabie17-Nov-08 12:05
Samer Aburabie17-Nov-08 12:05 
If its me ... I think I would solve this issue by using the concept of metadata ... the concept ! .. Well in this particular case I think I would use reflection and .NET Attributes ... reflection will help me to get the Fields (Person Class Properties) ... and .NET Attributes to determine which Fields shall be used ... for example

public class Person
        {
            private string name;
            [Displayable]
            public string Name
            {
                get { return name; }
                set { name = value; }
            }
            private int age;
            [Displayable]
            public int Age
            {
                get { return age; }
                set { age = value; }
            }

            private string officialID;
            
            public string OfficialID
            {
                get { return officialID; }
                set { officialID = value; }
            }	
        }

Now the Displayable Attribute is a custom .NET Attribute you create ... using reflection I can determine whether this Field has the Displayable attribute or not ... and some kind of class will know how to map this class with its Displayable Fields to the UI for example ...

Hard ... but doable ... and in complex applications could lead to problems if its not designed well ... but mainly in rare cases like yours it could work depending on your business.

Sincerely Samer Abu Rabie

Note: Please remember to rate this post to help others whom reading it.


Questionin search of a better printing/reporting mechanism Pin
giddy_guitarist19-Oct-08 0:56
giddy_guitarist19-Oct-08 0:56 
AnswerRe: in search of a better printing/reporting mechanism Pin
User 171649223-Oct-08 9:51
professionalUser 171649223-Oct-08 9:51 
AnswerRe: in search of a better printing/reporting mechanism Pin
Mycroft Holmes15-Nov-08 23:22
professionalMycroft Holmes15-Nov-08 23:22 
GeneralRe: in search of a better printing/reporting mechanism Pin
giddy_guitarist16-Nov-08 0:34
giddy_guitarist16-Nov-08 0:34 
QuestionForm Template - requirement gathering Pin
iamshaan13-Oct-08 5:12
iamshaan13-Oct-08 5:12 
QuestionRe: Form Template - requirement gathering Pin
led mike13-Oct-08 5:45
led mike13-Oct-08 5:45 
AnswerRe: Form Template - requirement gathering Pin
Pete O'Hanlon13-Oct-08 8:18
mvePete O'Hanlon13-Oct-08 8:18 
GeneralRe: Form Template - requirement gathering Pin
Paul Conrad13-Oct-08 12:14
professionalPaul Conrad13-Oct-08 12:14 
GeneralRe: Form Template - requirement gathering Pin
User 171649213-Oct-08 12:30
professionalUser 171649213-Oct-08 12:30 
GeneralRe: Form Template - requirement gathering Pin
Paul Conrad13-Oct-08 12:33
professionalPaul Conrad13-Oct-08 12:33 
QuestionTacking on external use to an intranet web app Pin
Keith Andersch9-Oct-08 5:02
Keith Andersch9-Oct-08 5:02 
GeneralCanal Manager framework for distributed application Pin
amspb19-Oct-08 0:28
amspb19-Oct-08 0:28 
GeneralRe: Canal Manager framework for distributed application Pin
Scott Dorman9-Oct-08 8:02
professionalScott Dorman9-Oct-08 8:02 
JokeRe: Canal Manager framework for distributed application Pin
Pete O'Hanlon9-Oct-08 8:34
mvePete O'Hanlon9-Oct-08 8:34 
GeneralRe: Canal Manager framework for distributed application Pin
Mark Churchill9-Oct-08 16:41
Mark Churchill9-Oct-08 16:41 
GeneralRe: Canal Manager framework for distributed application Pin
Pete O'Hanlon9-Oct-08 22:04
mvePete O'Hanlon9-Oct-08 22:04 
GeneralRe: Canal Manager framework for distributed application Pin
amspb19-Oct-08 22:14
amspb19-Oct-08 22:14 

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.