Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: read xml file Pin
stancrm12-Jul-06 3:55
stancrm12-Jul-06 3:55 
Questiondownlaod music file & play it in c#.net Pin
Bibhu Sh. Panigrahi12-Jul-06 2:48
Bibhu Sh. Panigrahi12-Jul-06 2:48 
GeneralMSXML2.ServerXMLHTTP50 replacement in .NET [modified] Pin
Abhinav Nigam12-Jul-06 2:45
Abhinav Nigam12-Jul-06 2:45 
QuestionHow to set display of a column according to its value in DataGrid? Pin
Jovito12-Jul-06 1:55
Jovito12-Jul-06 1:55 
QuestionWritting to Word document template Pin
AfriDiesel12-Jul-06 1:37
AfriDiesel12-Jul-06 1:37 
QuestionDatabase to XML file Pin
johan313112-Jul-06 0:23
johan313112-Jul-06 0:23 
AnswerRe: Database to XML file Pin
Ed.Poore12-Jul-06 1:21
Ed.Poore12-Jul-06 1:21 
QuestionCommunication between classes [modified] Pin
Roger Alsing11-Jul-06 22:58
Roger Alsing11-Jul-06 22:58 
This is only a design thread , its not much of a question , I just want to see what other people think is the right way..

Lets say you have 2 interfaces that have a 1-1 relation to eachother.. those two interfaces that can never be used w/o the other.
(eg in a model view presenter scenario where you have a view interface and a presenter class)

normally when a class might be used by multiple consumers it would be correct to use delegates/events to notify the consumer when something have happened.

however in a 1-1 scenario, you could just as well let them be aware of eachother and simply let them call specific methods in eachother.

What is your take and arguments on this?

I myself consider the last approach the most correct from a business perspective, since it does what it should and result in far less code that is still easy to maintain and have no drawbacks over the event based approach.

but the event based approach somehow still _feels_ like the correct way... maybe because it often is the correct way , but in other scenarios?

ideas and arguments please Smile | :)

http://www.puzzleframework.com
AnswerRe: Communication between classes Pin
J4amieC11-Jul-06 23:13
J4amieC11-Jul-06 23:13 
AnswerRe: Communication between classes Pin
BoneSoft12-Jul-06 4:08
BoneSoft12-Jul-06 4:08 
QuestionHelp with DataGridView Pin
johan313111-Jul-06 22:52
johan313111-Jul-06 22:52 
AnswerRe: Help with DataGridView Pin
Petar Srdanovic12-Jul-06 0:46
Petar Srdanovic12-Jul-06 0:46 
QuestionBatch Files Pin
Ali Mola11-Jul-06 22:11
Ali Mola11-Jul-06 22:11 
AnswerRe: Batch Files Pin
wasife11-Jul-06 22:19
wasife11-Jul-06 22:19 
AnswerRe: Batch Files Pin
Ravi Bhavnani12-Jul-06 2:36
professionalRavi Bhavnani12-Jul-06 2:36 
QuestionC# 2005 with Crystal Reports Pin
M Riaz Bashir11-Jul-06 21:52
M Riaz Bashir11-Jul-06 21:52 
AnswerRe: C# 2005 with Crystal Reports Pin
Paul Conrad15-Jul-06 12:05
professionalPaul Conrad15-Jul-06 12:05 
QuestionReading a file & removing CRLF Pin
WinBond11-Jul-06 21:14
WinBond11-Jul-06 21:14 
AnswerRe: Reading a file & removing CRLF Pin
Andrei Ungureanu11-Jul-06 21:52
Andrei Ungureanu11-Jul-06 21:52 
GeneralRe: Reading a file & removing CRLF Pin
WinBond11-Jul-06 23:32
WinBond11-Jul-06 23:32 
AnswerRe: Reading a file & removing CRLF Pin
Christian Graus12-Jul-06 4:06
protectorChristian Graus12-Jul-06 4:06 
QuestionChecking the input parameters Pin
Brendan Vogt11-Jul-06 21:10
Brendan Vogt11-Jul-06 21:10 
AnswerRe: Checking the input parameters Pin
Andrei Ungureanu11-Jul-06 21:39
Andrei Ungureanu11-Jul-06 21:39 
GeneralRe: Checking the input parameters Pin
J4amieC11-Jul-06 21:56
J4amieC11-Jul-06 21:56 
GeneralRe: Checking the input parameters Pin
Brendan Vogt12-Jul-06 3:15
Brendan Vogt12-Jul-06 3:15 

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.