Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# equilavent functionality to a C++ Vector Pin
Luc Pattyn1-Feb-07 6:37
sitebuilderLuc Pattyn1-Feb-07 6:37 
AnswerRe: C# equilavent functionality to a C++ Vector Pin
Marc Clifton1-Feb-07 7:13
mvaMarc Clifton1-Feb-07 7:13 
Questionhow to put the gradient effect on the BindingNavigator object's bacground in Windows Forms Pin
Rocky#1-Feb-07 5:11
Rocky#1-Feb-07 5:11 
QuestionControls on programmatically added TabPages Pin
jimkeating1-Feb-07 5:09
jimkeating1-Feb-07 5:09 
AnswerRe: Controls on programmatically added TabPages Pin
Luc Pattyn1-Feb-07 6:47
sitebuilderLuc Pattyn1-Feb-07 6:47 
GeneralRe: Controls on programmatically added TabPages Pin
jimkeating1-Feb-07 7:15
jimkeating1-Feb-07 7:15 
QuestionDependency issue Pin
Dan Neely1-Feb-07 5:04
Dan Neely1-Feb-07 5:04 
AnswerRe: Dependency issue Pin
Luc Pattyn1-Feb-07 6:59
sitebuilderLuc Pattyn1-Feb-07 6:59 
As I understand it, the logical dependency chain mainly is
GUIstuff --> nonGUIstuff --> SpecialMessageBox

I see three possible approaches to avoid the circular reference:

1) move the wrapper for SpecialMessageBox from GUIstuff to nonGUIstuff
you may feel it does not really belong there, and I would concur

2) move the wrapper to a separate DLL
GUIstuff --> nonGUIstuff --> wrapper --> SpecialMessageBox
it seems to be a pitty having a DLL for just that purpose

3) break the direct connection between your nonGUIstuff and the SpecialMessageBox;
this is the real OO approach: if the nonGUIstuff is about calculation, database accesses,
whatever, then it should not know how to interact with the user.
At best create an interface for reporting problems, implement it in GUIstuff,
and pass an object that implements it to nonGUIstuff.
Since you are going to ask anyway, yes, that interface itself belongs in nonGUIstuff
because nothing says it will use the GUI, and because nonGUIstuff needs it.

Hope this helps.

Smile | :)

Luc Pattyn

GeneralRe: Dependency issue Pin
Dan Neely1-Feb-07 7:33
Dan Neely1-Feb-07 7:33 
GeneralRe: Dependency issue Pin
Luc Pattyn1-Feb-07 7:48
sitebuilderLuc Pattyn1-Feb-07 7:48 
QuestionCalling SP from .net Pin
Astricks1-Feb-07 3:43
Astricks1-Feb-07 3:43 
AnswerRe: Calling SP from .net Pin
Michael P Butler1-Feb-07 3:51
Michael P Butler1-Feb-07 3:51 
GeneralRe: Calling SP from .net Pin
Astricks1-Feb-07 3:58
Astricks1-Feb-07 3:58 
GeneralRe: Calling SP from .net Pin
Russell Jones1-Feb-07 22:02
Russell Jones1-Feb-07 22:02 
GeneralRe: Calling SP from .net Pin
Michael P Butler1-Feb-07 23:10
Michael P Butler1-Feb-07 23:10 
AnswerRe: Calling SP from .net Pin
Pete O'Hanlon1-Feb-07 4:38
mvePete O'Hanlon1-Feb-07 4:38 
QuestionResponse.Redirect Pin
acodman1-Feb-07 3:33
acodman1-Feb-07 3:33 
AnswerRe: Response.Redirect Pin
ednrgc1-Feb-07 3:35
ednrgc1-Feb-07 3:35 
AnswerRe: Response.Redirect Pin
Luc Pattyn1-Feb-07 3:37
sitebuilderLuc Pattyn1-Feb-07 3:37 
AnswerRe: Response.Redirect Pin
Michael P Butler1-Feb-07 3:45
Michael P Butler1-Feb-07 3:45 
QuestionXML Pin
snouto1-Feb-07 3:30
snouto1-Feb-07 3:30 
AnswerRe: XML Pin
Dustin Metzgar1-Feb-07 3:48
Dustin Metzgar1-Feb-07 3:48 
QuestionCompiler 2003 Makes me Dieing Pin
snouto1-Feb-07 2:41
snouto1-Feb-07 2:41 
AnswerRe: Compiler 2003 Makes me Dieing Pin
ednrgc1-Feb-07 3:21
ednrgc1-Feb-07 3:21 
GeneralRe: Compiler 2003 Makes me Dieing Pin
snouto1-Feb-07 3:31
snouto1-Feb-07 3:31 

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.