Click here to Skip to main content
15,905,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Obj.Orientation structure newbie/intermediate question Pin
BillWoodruff29-Dec-14 5:17
professionalBillWoodruff29-Dec-14 5:17 
If I were designing a Form to be used for viewing the current state of a Customer, I would not have a method available from that form to actually delete a Customer ... for security reasons. I would allow only the Manager's Form to delete a Customer, or delete any agreement with the Customer.

I would probably want to show, on a given Customer's Form:

1. the customer information appropriate to the role of the person viewing the Form

2. at least the fact that the Customer has a current agreement(s).

3. depending on design: perhaps a mechanism to notify the Manager the customer has made a request to delete account/agreement.

I'd suggest (hard to be more specific without seeing/understanding your code):

1. when the current Customer Form is created, pass to it the necessary information it needs to present what you want to appear on the Form about the current agreement(s), or the fact there is no current agreement.

2. I'd use a separate Form to notify the Manager of a request for deleting an account, or agreement ... if the Customer Form did not allow such a notifiaction by the person using it.
«A man will be imprisoned in a room with a door that's unlocked and opens inwards ... as long as it does not occur to him to pull rather than push»  Wittgenstein

QuestionWorkFlow Pin
Zeyad Jalil28-Dec-14 20:58
professionalZeyad Jalil28-Dec-14 20:58 
AnswerRe: WorkFlow Pin
Pete O'Hanlon28-Dec-14 21:21
mvePete O'Hanlon28-Dec-14 21:21 
QuestionCreate diagonal in the DevExpress XtraReport Pin
nhanlaptrinh28-Dec-14 1:42
nhanlaptrinh28-Dec-14 1:42 
AnswerRe: Create diagonal in the DevExpress XtraReport Pin
Richard Andrew x6428-Dec-14 10:41
professionalRichard Andrew x6428-Dec-14 10:41 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
nhanlaptrinh29-Dec-14 3:59
nhanlaptrinh29-Dec-14 3:59 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
Pete O'Hanlon29-Dec-14 4:38
mvePete O'Hanlon29-Dec-14 4:38 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
nhanlaptrinh29-Dec-14 17:33
nhanlaptrinh29-Dec-14 17:33 
Questionwindows service to execute ms sql qurey Pin
Member 1129047526-Dec-14 19:25
Member 1129047526-Dec-14 19:25 
AnswerRe: windows service to execute ms sql qurey Pin
Garth J Lancaster26-Dec-14 19:39
professionalGarth J Lancaster26-Dec-14 19:39 
QuestionCan anyone give me advice on nested loops? Pin
Member 1133710826-Dec-14 16:29
Member 1133710826-Dec-14 16:29 
GeneralRe: Can anyone give me advice on nested loops? Pin
PIEBALDconsult26-Dec-14 17:18
mvePIEBALDconsult26-Dec-14 17:18 
AnswerRe: Can anyone give me advice on nested loops? Pin
tarun199126-Dec-14 19:08
professionaltarun199126-Dec-14 19:08 
AnswerRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 20:51
professionalBillWoodruff26-Dec-14 20:51 
GeneralRe: Can anyone give me advice on nested loops? Pin
Member 1133710826-Dec-14 21:14
Member 1133710826-Dec-14 21:14 
GeneralRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 21:40
professionalBillWoodruff26-Dec-14 21:40 
QuestionDetect Enter key press - click button when pressed Pin
robwm126-Dec-14 11:42
robwm126-Dec-14 11:42 
AnswerRe: Detect Enter key press - click button when pressed Pin
Dave Kreskowiak26-Dec-14 16:07
mveDave Kreskowiak26-Dec-14 16:07 
GeneralRe: Detect Enter key press - click button when pressed Pin
BillWoodruff26-Dec-14 23:04
professionalBillWoodruff26-Dec-14 23:04 
GeneralRe: Detect Enter key press - click button when pressed Pin
Dave Kreskowiak27-Dec-14 5:13
mveDave Kreskowiak27-Dec-14 5:13 
AnswerRe: Detect Enter key press - click button when pressed Pin
tarun199126-Dec-14 19:16
professionaltarun199126-Dec-14 19:16 
GeneralRe: Detect Enter key press - click button when pressed Pin
robwm127-Dec-14 6:24
robwm127-Dec-14 6:24 
GeneralRe: Detect Enter key press - click button when pressed Pin
tarun199128-Dec-14 7:45
professionaltarun199128-Dec-14 7:45 
GeneralRe: Detect Enter key press - click button when pressed Pin
tarun199131-Dec-14 7:42
professionaltarun199131-Dec-14 7:42 
AnswerRe: Detect Enter key press - click button when pressed Pin
BillWoodruff26-Dec-14 20:02
professionalBillWoodruff26-Dec-14 20: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.