Click here to Skip to main content
15,909,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows NameSpace Extension Pin
Richard MacCutchan10-Oct-11 22:17
mveRichard MacCutchan10-Oct-11 22:17 
QuestionRole-Based Dynamic UI Pin
Matt U.10-Oct-11 15:28
Matt U.10-Oct-11 15:28 
AnswerRe: Role-Based Dynamic UI Pin
David Skelly10-Oct-11 22:14
David Skelly10-Oct-11 22:14 
GeneralRe: Role-Based Dynamic UI Pin
Matt U.11-Oct-11 1:56
Matt U.11-Oct-11 1:56 
GeneralRe: Role-Based Dynamic UI Pin
Wayne Gaylard11-Oct-11 2:16
professionalWayne Gaylard11-Oct-11 2:16 
GeneralRe: Role-Based Dynamic UI Pin
Matt U.11-Oct-11 3:06
Matt U.11-Oct-11 3:06 
GeneralRe: Role-Based Dynamic UI Pin
Wayne Gaylard11-Oct-11 3:16
professionalWayne Gaylard11-Oct-11 3:16 
GeneralRe: Role-Based Dynamic UI Pin
BobJanova11-Oct-11 3:15
BobJanova11-Oct-11 3:15 
Good answer.

As an extension to this, you can then data bind the Enabled property to User.CurrentUserRole.CanXxx (at least in WPF/Silverlight, I think that works in WinForms too).

(By the way I'd just call that property User.Role. I like brevity Wink | ;) .)
GeneralRe: Role-Based Dynamic UI Pin
Wayne Gaylard11-Oct-11 3:23
professionalWayne Gaylard11-Oct-11 3:23 
GeneralRe: Role-Based Dynamic UI Pin
BillWoodruff11-Oct-11 7:09
professionalBillWoodruff11-Oct-11 7:09 
QuestionHow 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 15:22
professionalBillWoodruff10-Oct-11 15:22 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
Luc Pattyn10-Oct-11 15:57
sitebuilderLuc Pattyn10-Oct-11 15:57 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 20:19
professionalBillWoodruff10-Oct-11 20:19 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
PIEBALDconsult10-Oct-11 16:00
mvePIEBALDconsult10-Oct-11 16:00 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 20:15
professionalBillWoodruff10-Oct-11 20:15 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
PIEBALDconsult11-Oct-11 2:33
mvePIEBALDconsult11-Oct-11 2:33 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
BobJanova11-Oct-11 1:39
BobJanova11-Oct-11 1:39 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
harold aptroot11-Oct-11 2:54
harold aptroot11-Oct-11 2:54 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff11-Oct-11 7:28
professionalBillWoodruff11-Oct-11 7:28 
QuestionTcpClient - Detecting closed connections Pin
Grimes10-Oct-11 11:32
Grimes10-Oct-11 11:32 
AnswerRe: TcpClient - Detecting closed connections Pin
BobJanova10-Oct-11 23:24
BobJanova10-Oct-11 23:24 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes10-Oct-11 23:53
Grimes10-Oct-11 23:53 
GeneralRe: TcpClient - Detecting closed connections Pin
BobJanova11-Oct-11 1:26
BobJanova11-Oct-11 1:26 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes11-Oct-11 2:05
Grimes11-Oct-11 2:05 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes11-Oct-11 0:02
Grimes11-Oct-11 0:02 

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.