Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is this a good book to learn c#? Pin
Shameel28-Aug-11 8:54
professionalShameel28-Aug-11 8:54 
GeneralRe: Is this a good book to learn c#? Pin
stephen.darling28-Aug-11 11:25
stephen.darling28-Aug-11 11:25 
AnswerRe: Is this a good book to learn c#? Pin
Eddy Vluggen28-Aug-11 9:05
professionalEddy Vluggen28-Aug-11 9:05 
GeneralRe: Is this a good book to learn c#? Pin
stephen.darling28-Aug-11 11:27
stephen.darling28-Aug-11 11:27 
AnswerRe: Is this a good book to learn c#? Pin
BillWoodruff28-Aug-11 19:43
professionalBillWoodruff28-Aug-11 19:43 
Questionintegrate app.config [modified] Pin
Groulien28-Aug-11 4:14
Groulien28-Aug-11 4:14 
AnswerRe: integrate app.config Pin
jschell28-Aug-11 7:49
jschell28-Aug-11 7:49 
QuestionC#.net access Pin
dcof28-Aug-11 3:04
dcof28-Aug-11 3:04 
I am writing a C#.net windows desktop/windows form application in 2008 or 2010. When the application basically starts in program.cs in the main method., I am going to check to see if a user has access to this new desktop at all. I am also going to check to see what parts of the application the user has access to by looking at the active directory. When a user clicks on various tabs in the application there is going to be read only or read-write access. When there is read-write access, I going going to display the extra buttons only to those users only.

I have the following questions to ask:

1. Would you put this kind of logic in program.cs? If not, where would you suggest I put this logic and can you point me to a code reference I can use?

2. For the parts of the application where a user clicks on a tab that have either read-only or read-write access:

a. I was thinking of of storing the active directory groups that user has access to in global variables. However this is generally not a good idea due to not following good object oriented design princicples. if you were going to keep these values stored in variables, how would you accomplish this task?

2. Another option would be to do the same kind of basic ldap lookup everytime a user clicks on that tab on the desktop. How would you accomplish this option?

3. Do you have other options to suggest? if so, what are they? Can you explain your alternative option to me and/or point me to a url that will explain how you accomplish your optiuon?
AnswerRe: C#.net access Pin
PIEBALDconsult28-Aug-11 4:34
mvePIEBALDconsult28-Aug-11 4:34 
GeneralRe: C#.net access Pin
dcof28-Aug-11 8:53
dcof28-Aug-11 8:53 
GeneralRe: C#.net access Pin
PIEBALDconsult28-Aug-11 12:01
mvePIEBALDconsult28-Aug-11 12:01 
GeneralRe: C#.net access Pin
dcof28-Aug-11 13:12
dcof28-Aug-11 13:12 
AnswerRe: C#.net access Pin
jschell28-Aug-11 7:59
jschell28-Aug-11 7:59 
GeneralRe: C#.net access Pin
dcof28-Aug-11 8:55
dcof28-Aug-11 8:55 
QuestionA programe interact with user Pin
Had12327-Aug-11 5:42
Had12327-Aug-11 5:42 
AnswerRe: A programe interact with user Pin
MicroVirus27-Aug-11 6:08
MicroVirus27-Aug-11 6:08 
AnswerRe: A programe interact with user Pin
Eddy Vluggen27-Aug-11 9:48
professionalEddy Vluggen27-Aug-11 9:48 
GeneralRe: A programe interact with user Pin
Ravi Bhavnani27-Aug-11 11:25
professionalRavi Bhavnani27-Aug-11 11:25 
GeneralRe: A programe interact with user Pin
OriginalGriff27-Aug-11 22:35
mveOriginalGriff27-Aug-11 22:35 
GeneralRe: A programe interact with user Pin
Had12328-Aug-11 2:54
Had12328-Aug-11 2:54 
AnswerRe: A programe interact with user Pin
Ravi Bhavnani28-Aug-11 5:11
professionalRavi Bhavnani28-Aug-11 5:11 
GeneralRe: A programe interact with user Pin
Manfred Rudolf Bihy28-Aug-11 3:10
professionalManfred Rudolf Bihy28-Aug-11 3:10 
AnswerRe: A programe interact with user Pin
Abhinav S28-Aug-11 2:46
Abhinav S28-Aug-11 2:46 
Questionwhat is delegates, threading functions etc Pin
dinesh samaria27-Aug-11 5:38
dinesh samaria27-Aug-11 5:38 
AnswerRe: what is delegates, threading functions etc Pin
Hari Om Prakash Sharma27-Aug-11 8:29
Hari Om Prakash Sharma27-Aug-11 8:29 

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.