Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
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 
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 
dcof wrote:
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?


At some point you are going to have GUI components (classes) Which will NOT be part of program.cs (And with enough complexity the GUI components might be in their own assembly.

You are also going to need at least one class that does nothing but the Active Directory interaction. The GUI components call that class. That class then retrieves the necessary information.

The GUI components are then used in program.cs. In addition program.cs will use the above class to do the initial start up check. Presumably you are already planning on telling the users that they failed the initial Active Directory check.

dcof wrote:
.<layer> 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?


I would investigate the requirement that lead to this in the first place. Authentication and Authorization is best done with roles not users. A user belongs to a role. The role controls access. I would probably implement it in a database. I would probably cache it with a short expiration time.
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 
AnswerRe: what is delegates, threading functions etc Pin
Abhinav S27-Aug-11 21:03
Abhinav S27-Aug-11 21:03 
GeneralNetwork Game Word Building Project Pin
teju.aries27-Aug-11 3:53
teju.aries27-Aug-11 3:53 
AnswerRe: Network Game Word Building Project Pin
DaveAuld27-Aug-11 4:48
professionalDaveAuld27-Aug-11 4:48 
GeneralRe: Network Game Word Building Project Pin
Ravi Bhavnani27-Aug-11 11:27
professionalRavi Bhavnani27-Aug-11 11:27 
Questionc# Pin
rama_sangoju27-Aug-11 1:35
rama_sangoju27-Aug-11 1:35 

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.