Click here to Skip to main content
15,902,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: Switch versus an array of delegates Pin
DaveyM6911-Mar-10 7:56
professionalDaveyM6911-Mar-10 7:56 
GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 8:03
mvePIEBALDconsult11-Mar-10 8:03 
GeneralRe: Switch versus an array of delegates Pin
Dave Kreskowiak11-Mar-10 9:11
mveDave Kreskowiak11-Mar-10 9:11 
GeneralRe: Switch versus an array of delegates Pin
dybs11-Mar-10 17:28
dybs11-Mar-10 17:28 
GeneralRe: Switch versus an array of delegates Pin
Luc Pattyn11-Mar-10 17:38
sitebuilderLuc Pattyn11-Mar-10 17:38 
GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 6:41
mvePIEBALDconsult11-Mar-10 6:41 
QuestionCreating system of separation access rights Pin
Xgener11-Mar-10 5:26
Xgener11-Mar-10 5:26 
AnswerRe: Creating system of separation access rights Pin
Saksida Bojan11-Mar-10 5:56
Saksida Bojan11-Mar-10 5:56 
I would do it like this: (As long as I presume, that client doesn't access Database directly)

1. step: Client logs in with authentic username and password
2. step: Server sends to client current access level and the server holds its data per session. (Doesn't clean memory, till logout or Time out)
3. step: Client gets access level and then prepares GUI.

When client sends command, witch exceeds user privileges wont get them info. This design prevents users modifying client, to get higher access. This works as long you do not connect directly to database only to service that sits on Server side between client and database.

and bad design: If you want to directly connect to database (Witch I do not recommend) use for each privileges, use own build client for each access level.
C++ have compiler directive: (I do not know if exists in C#)
#define, #ifdef, #ifndef and #endif.
QuestionOutlook - with Hotmail account Pin
chiky_ancutza11-Mar-10 5:21
chiky_ancutza11-Mar-10 5:21 
QuestionGameServer Query A2S_PLAYER Problem Pin
Nokia555611-Mar-10 5:21
Nokia555611-Mar-10 5:21 
QuestionRotate an rectangle while moving the mouse... and watch it rotating Pin
nwl11-Mar-10 3:01
nwl11-Mar-10 3:01 
AnswerRe: Rotate an rectangle while moving the mouse... and watch it rotating Pin
OriginalGriff11-Mar-10 3:52
mveOriginalGriff11-Mar-10 3:52 
AnswerRe: Rotate an rectangle while moving the mouse... and watch it rotating Pin
dan!sh 11-Mar-10 4:28
professional dan!sh 11-Mar-10 4:28 
AnswerRe: Rotate an rectangle while moving the mouse... and watch it rotating Pin
Luc Pattyn11-Mar-10 5:18
sitebuilderLuc Pattyn11-Mar-10 5:18 
Questionhi Pin
Djtech0111-Mar-10 2:49
Djtech0111-Mar-10 2:49 
AnswerRe: hi Pin
Not Active11-Mar-10 3:28
mentorNot Active11-Mar-10 3:28 
AnswerRe: hi Pin
Luc Pattyn11-Mar-10 3:50
sitebuilderLuc Pattyn11-Mar-10 3:50 
Generaldetail explaination to my question. Pin
Djtech0114-Mar-10 22:18
Djtech0114-Mar-10 22:18 
AnswerRe: hi Pin
Dave Kreskowiak11-Mar-10 5:19
mveDave Kreskowiak11-Mar-10 5:19 
Questionconvert foxpro project to c#/ms sql2005 server project Pin
bharatvpatil11-Mar-10 1:52
bharatvpatil11-Mar-10 1:52 
AnswerRe: convert foxpro project to c#/ms sql2005 server project Pin
Dave Kreskowiak11-Mar-10 1:59
mveDave Kreskowiak11-Mar-10 1:59 
AnswerRe: convert foxpro project to c#/ms sql2005 server project Pin
dan!sh 11-Mar-10 4:30
professional dan!sh 11-Mar-10 4:30 
Questionget the stream writer of the webbrowser control Pin
Yustme11-Mar-10 1:38
Yustme11-Mar-10 1:38 
AnswerRe: get the stream writer of the webbrowser control Pin
Kristian Sixhøj11-Mar-10 1:47
Kristian Sixhøj11-Mar-10 1:47 
GeneralRe: get the stream writer of the webbrowser control Pin
Yustme11-Mar-10 1:48
Yustme11-Mar-10 1:48 

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.