Click here to Skip to main content
15,891,184 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Loading objects Pin
led mike17-Nov-08 5:06
led mike17-Nov-08 5:06 
GeneralRe: Loading objects Pin
CodingYoshi18-Nov-08 8:26
CodingYoshi18-Nov-08 8:26 
QuestionRe: Loading objects Pin
led mike18-Nov-08 8:28
led mike18-Nov-08 8:28 
AnswerRe: Loading objects Pin
CodingYoshi18-Nov-08 18:56
CodingYoshi18-Nov-08 18:56 
Questiondesigning a good way enable/disable controls [modified] Pin
giddy_guitarist12-Nov-08 15:18
giddy_guitarist12-Nov-08 15:18 
AnswerRe: designing a good way enable/disable controls Pin
Pete O'Hanlon12-Nov-08 22:30
mvePete O'Hanlon12-Nov-08 22:30 
AnswerRe: designing a good way enable/disable controls Pin
Giorgi Dalakishvili13-Nov-08 0:46
mentorGiorgi Dalakishvili13-Nov-08 0:46 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist13-Nov-08 4:39
giddy_guitarist13-Nov-08 4:39 
hi,

Thanks you guys, but un fortunately UI needs to be disabled based on more complicated situations. Like User permissions, and things like say if its a customer's last day of stay, stuff like that.

I will have a customer grid, so if a certain customer is on his last day, in the user control I would do this:
//on selected reservation changed.<br />
if(selectedReservation.EndDate == DateTime.Today)<br />
{<br />
  //must enable the CheckOut Reservation menu item.<br />
} else {<br />
   //must disable the CheckOut Reservation menu item.<br />
}<br />

I can't put all possibilities into an Enum, and I think databinding would be a little convoluted since some situations are more complex.

Is my design stupid? that I'm looping through the controls?

Thanks so much.
GeneralRe: designing a good way enable/disable controls Pin
Ray Cassick14-Nov-08 9:56
Ray Cassick14-Nov-08 9:56 
AnswerRe: designing a good way enable/disable controls Pin
Jani Giannoudis15-Nov-08 5:32
Jani Giannoudis15-Nov-08 5:32 
GeneralRe: designing a good way enable/disable controls Pin
Mycroft Holmes15-Nov-08 23:31
professionalMycroft Holmes15-Nov-08 23:31 
AnswerRe: designing a good way enable/disable controls Pin
CodingYoshi15-Nov-08 7:38
CodingYoshi15-Nov-08 7:38 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 19:27
giddy_guitarist15-Nov-08 19:27 
GeneralRe: designing a good way enable/disable controls Pin
CodingYoshi15-Nov-08 22:12
CodingYoshi15-Nov-08 22:12 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 22:25
giddy_guitarist15-Nov-08 22:25 
QuestionDatabase Engine Independant Data Modelling Pin
Brady Kelly7-Nov-08 5:03
Brady Kelly7-Nov-08 5:03 
AnswerRe: Database Engine Independant Data Modelling Pin
User 17164927-Nov-08 8:00
professionalUser 17164927-Nov-08 8:00 
AnswerRe: Database Engine Independant Data Modelling Pin
Eduardo B16-Nov-08 13:51
Eduardo B16-Nov-08 13:51 
GeneralPart One of a Series on Replicating Validation Logic Between Client and Server [modified] Pin
Brady Kelly7-Nov-08 3:42
Brady Kelly7-Nov-08 3:42 
QuestionHi there :) Please help me Pin
viashivan5-Nov-08 5:05
viashivan5-Nov-08 5:05 
AnswerRe: Hi there :) Please help me Pin
Vimalsoft(Pty) Ltd17-Nov-08 19:55
professionalVimalsoft(Pty) Ltd17-Nov-08 19:55 
QuestionData structure design Pin
hpjchobbes3-Nov-08 5:57
hpjchobbes3-Nov-08 5:57 
AnswerRe: Data structure design Pin
Ray Cassick3-Nov-08 6:13
Ray Cassick3-Nov-08 6:13 
GeneralRe: Data structure design Pin
hpjchobbes3-Nov-08 6:51
hpjchobbes3-Nov-08 6:51 
GeneralRe: Data structure design Pin
Ray Cassick3-Nov-08 7:04
Ray Cassick3-Nov-08 7:04 

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.