Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to speed up GDI+ without using pointer Pin
fadee26-Sep-03 20:00
fadee26-Sep-03 20:00 
GeneralAding a dynamic web reference at runtime Pin
Obi725-Sep-03 22:10
Obi725-Sep-03 22:10 
GeneralRe: Ading a dynamic web reference at runtime Pin
Kannan Kalyanaraman26-Sep-03 0:57
Kannan Kalyanaraman26-Sep-03 0:57 
GeneralRe: Ading a dynamic web reference at runtime Pin
Obi726-Sep-03 1:32
Obi726-Sep-03 1:32 
GeneralSetup creation problem Pin
..Hubert..25-Sep-03 22:03
..Hubert..25-Sep-03 22:03 
GeneralQuestion about sockets. Pin
jtmtv1825-Sep-03 20:08
jtmtv1825-Sep-03 20:08 
QuestionHow to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
ralfoide25-Sep-03 19:06
ralfoide25-Sep-03 19:06 
AnswerRe: How to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
Jeremy Kimball25-Sep-03 20:06
Jeremy Kimball25-Sep-03 20:06 
GeneralRe: How to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
ralfoide26-Sep-03 8:38
ralfoide26-Sep-03 8:38 
GeneralRichTextBox Auto Scroll Down Pin
zecodela25-Sep-03 18:27
zecodela25-Sep-03 18:27 
GeneralRe: RichTextBox Auto Scroll Down Pin
jtmtv1825-Sep-03 20:00
jtmtv1825-Sep-03 20:00 
GeneralRe: RichTextBox Auto Scroll Down Pin
J. Dunlap25-Sep-03 20:15
J. Dunlap25-Sep-03 20:15 
GeneralRe: RichTextBox Auto Scroll Down Pin
zecodela25-Sep-03 20:38
zecodela25-Sep-03 20:38 
GeneralDesign question... Pin
sharkfish25-Sep-03 14:13
sharkfish25-Sep-03 14:13 
I am a newbie at design, and I've been studying design patterns but I can't figure what to do in this case.

I have a security object that has properties for a list of fields that also happen to be the properties of another object.

class security {
//"true" value for each property means yes, user has permission to access these fields in client
bool ssNumber;
bool hourlyRate;
bool dateOfBirth;
//getters and setters, functions to pull data from database, etc.
}

class empInfo {
string ssNumber;
decimal hourlyRate;
DateTime dateOfBirth;
//getters and setters, functions to pull data from database, etc.
}

I need empInfo to be aware as to which of its properties are considered permissible for access by a particular user.

What would be the best way to tell if a particular property in empInfo is allowed access by the user?
Should empInfo be extended to include security class and then when empInfo is instantiated and populated, grab security data then?

Since each field represents a datacolumn on the web, I would like to keep as much data manipulation in the middle tier as possible.


Thanks in advance!
GeneralRe: Design question... Pin
sharkfish25-Sep-03 15:34
sharkfish25-Sep-03 15:34 
GeneralMaking a file readOnly Pin
kman25-Sep-03 11:36
kman25-Sep-03 11:36 
GeneralRe: Making a file readOnly Pin
Wjousts25-Sep-03 11:46
Wjousts25-Sep-03 11:46 
GeneralRe: Making a file readOnly Pin
kman25-Sep-03 11:50
kman25-Sep-03 11:50 
GeneralRe: Making a file readOnly Pin
Wjousts25-Sep-03 12:00
Wjousts25-Sep-03 12:00 
GeneralRe: Making a file readOnly Pin
kman25-Sep-03 12:17
kman25-Sep-03 12:17 
QuestionToolbar button circumvents textbox validation? Pin
Wjousts25-Sep-03 11:29
Wjousts25-Sep-03 11:29 
AnswerRe: Toolbar button circumvents textbox validation? Pin
ankita patel25-Sep-03 12:24
ankita patel25-Sep-03 12:24 
GeneralRe: Toolbar button circumvents textbox validation? Pin
Wjousts25-Sep-03 13:05
Wjousts25-Sep-03 13:05 
AnswerRe: Toolbar button circumvents textbox validation? Pin
J. Dunlap25-Sep-03 13:12
J. Dunlap25-Sep-03 13:12 
GeneralRe: Toolbar button circumvents textbox validation? Pin
Wjousts25-Sep-03 13:34
Wjousts25-Sep-03 13:34 

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.