Click here to Skip to main content
16,004,854 members
Home / Discussions / C#
   

C#

 
QuestionCache problem Pin
dabuskol21-Oct-08 0:31
dabuskol21-Oct-08 0:31 
AnswerRe: Cache problem Pin
leppie21-Oct-08 0:50
leppie21-Oct-08 0:50 
GeneralRe: Cache problem Pin
dabuskol21-Oct-08 1:22
dabuskol21-Oct-08 1:22 
GeneralRe: Cache problem Pin
leppie21-Oct-08 1:34
leppie21-Oct-08 1:34 
GeneralRe: Cache problem Pin
dabuskol21-Oct-08 1:43
dabuskol21-Oct-08 1:43 
AnswerRe: Cache problem Pin
Guffa21-Oct-08 2:06
Guffa21-Oct-08 2:06 
GeneralRe: Cache problem Pin
dabuskol22-Oct-08 1:00
dabuskol22-Oct-08 1:00 
QuestionArchitecture for Software extension Pin
madmaxime120-Oct-08 23:29
madmaxime120-Oct-08 23:29 
Hello,

I'm looking for a way to solve follwing type of problem (this is a simplified example) in a C# environment

Lets say I have a booking tool for multiple medias.
I have one method:
- addBooking()
Two media types:
- Radio
- Web

I would like to have additional logic in my addBooking method depending the media type; that means:

addBooking() does the same functionality,but , if I have radio I want to add special discount and if I have web I want to edit some other booking.

I read about "software extension" which is, I think, what I need. How can I implement that? I thought of some kind of listener after my addBooking() which checks the media type and calls the right method depending the type.

Thanks for any ideas!
AnswerRe: Architecture for Software extension Pin
Pete O'Hanlon20-Oct-08 23:46
mvePete O'Hanlon20-Oct-08 23:46 
GeneralRe: Architecture for Software extension Pin
madmaxime120-Oct-08 23:55
madmaxime120-Oct-08 23:55 
GeneralRe: Architecture for Software extension Pin
Pete O'Hanlon21-Oct-08 1:09
mvePete O'Hanlon21-Oct-08 1:09 
GeneralRe: Architecture for Software extension Pin
madmaxime121-Oct-08 1:24
madmaxime121-Oct-08 1:24 
GeneralRe: Architecture for Software extension Pin
Pete O'Hanlon21-Oct-08 1:24
mvePete O'Hanlon21-Oct-08 1:24 
QuestionMulticore/multithread Pin
invader8220-Oct-08 23:25
invader8220-Oct-08 23:25 
AnswerRe: Multicore/multithread Pin
Simon P Stevens20-Oct-08 23:32
Simon P Stevens20-Oct-08 23:32 
QuestionOLE Server in C# Pin
VasDemidov20-Oct-08 23:01
VasDemidov20-Oct-08 23:01 
AnswerRe: OLE Server in C# Pin
Abdallah Gomah5-Apr-10 18:26
Abdallah Gomah5-Apr-10 18:26 
QuestionHow can I programmatically generate OnDrawItem events for a ComboBox? Pin
arnold_w20-Oct-08 22:50
arnold_w20-Oct-08 22:50 
AnswerRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
Simon P Stevens20-Oct-08 22:57
Simon P Stevens20-Oct-08 22:57 
GeneralRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
arnold_w20-Oct-08 23:15
arnold_w20-Oct-08 23:15 
GeneralRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
leppie20-Oct-08 23:25
leppie20-Oct-08 23:25 
GeneralRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
Simon P Stevens20-Oct-08 23:36
Simon P Stevens20-Oct-08 23:36 
GeneralRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
arnold_w21-Oct-08 0:09
arnold_w21-Oct-08 0:09 
GeneralRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
Simon P Stevens21-Oct-08 0:22
Simon P Stevens21-Oct-08 0:22 
GeneralRe: How can I programmatically generate OnDrawItem events for a ComboBox? Pin
arnold_w21-Oct-08 0:26
arnold_w21-Oct-08 0:26 

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.