<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Implementing A MessageBox In CAB</title>
	<atom:link href="http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/</link>
	<description>Adventures in .NET &#38; Agile Development...</description>
	<lastBuildDate>Mon, 13 Apr 2009 10:13:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: anetdeveloper</title>
		<link>http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/comment-page-1/#comment-16251</link>
		<dc:creator>anetdeveloper</dc:creator>
		<pubDate>Sat, 22 Sep 2007 08:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/#comment-16251</guid>
		<description>Hi Chris,
 
Thanks for the immediate response! I really appreciate that.
 
I am not using SCSF so I must say it is the same approach for the MVC pattern in CAB without SCSF.
 
But here is my detailed problem..
 
I have a document-centric application in which the user can say new document or open document from the UI extension site. I handle that command in the main workitem, deserialize in my business logic and check whether it is password protected. If it is, then I will show a dialog to take the password. As I understand, if I use WindowWorkspace, it doesn&#039;t return DialogResult so then how to handle that...do I design a normal for as a dialog or it is a breach of CAB architecture? Normally in CAB all views are user controls[SmartParts]. 
 
Secondly, in regard to Message boxes, as the user says new document, I just check if the other document is already open, and if it is, I just want to prompt user to close current and open new. In this case, I want to show the message box. Now this is also handled in my workitem not in controller. 
 
The thing is I am using CAB for hte first time as we have multiple such application and later if we want to integrate these, the effort would be less due to the modular architecture of CAB.
 
I would definitely appreciate your help.
 
Regards,
Amit</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>Thanks for the immediate response! I really appreciate that.</p>
<p>I am not using SCSF so I must say it is the same approach for the MVC pattern in CAB without SCSF.</p>
<p>But here is my detailed problem..</p>
<p>I have a document-centric application in which the user can say new document or open document from the UI extension site. I handle that command in the main workitem, deserialize in my business logic and check whether it is password protected. If it is, then I will show a dialog to take the password. As I understand, if I use WindowWorkspace, it doesn&#8217;t return DialogResult so then how to handle that&#8230;do I design a normal for as a dialog or it is a breach of CAB architecture? Normally in CAB all views are user controls[SmartParts]. </p>
<p>Secondly, in regard to Message boxes, as the user says new document, I just check if the other document is already open, and if it is, I just want to prompt user to close current and open new. In this case, I want to show the message box. Now this is also handled in my workitem not in controller. </p>
<p>The thing is I am using CAB for hte first time as we have multiple such application and later if we want to integrate these, the effort would be less due to the modular architecture of CAB.</p>
<p>I would definitely appreciate your help.</p>
<p>Regards,<br />
Amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anetdeveloper</title>
		<link>http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/comment-page-1/#comment-15821</link>
		<dc:creator>anetdeveloper</dc:creator>
		<pubDate>Thu, 13 Sep 2007 19:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/#comment-15821</guid>
		<description>Hi Chris,

I am a newbie to CAB and am using CAB first time in my project. I am not using SCSF so I am not sure how should I use this in my project but I desperately seeking such functionality.

Please help me out.

- Amit</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>I am a newbie to CAB and am using CAB first time in my project. I am not using SCSF so I am not sure how should I use this in my project but I desperately seeking such functionality.</p>
<p>Please help me out.</p>
<p>- Amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve K.</title>
		<link>http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/comment-page-1/#comment-12875</link>
		<dc:creator>Steve K.</dc:creator>
		<pubDate>Thu, 19 Jul 2007 04:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/#comment-12875</guid>
		<description>Hi Chris,

I&#039;m taking a second swing at this as I have a situation where I need to get a DialogResult back from my Modal Views.

I read your post and jumped into the sample, right away I realized that these really are intended (as you said) to only be simple dialogs.  In my situation I need to show some very complex Views complete with MVP - looking at your sample I&#039;m not seeing how I could do this.

For example, if you wanted to use MVP on your login view, how would you go about that?

I&#039;m sure it&#039;s obvious, but I&#039;m not seeing it.

Thanks for this great post, it must have taken you quite awhile to put this together, I appreciate it.

-Steve</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>I&#8217;m taking a second swing at this as I have a situation where I need to get a DialogResult back from my Modal Views.</p>
<p>I read your post and jumped into the sample, right away I realized that these really are intended (as you said) to only be simple dialogs.  In my situation I need to show some very complex Views complete with MVP &#8211; looking at your sample I&#8217;m not seeing how I could do this.</p>
<p>For example, if you wanted to use MVP on your login view, how would you go about that?</p>
<p>I&#8217;m sure it&#8217;s obvious, but I&#8217;m not seeing it.</p>
<p>Thanks for this great post, it must have taken you quite awhile to put this together, I appreciate it.</p>
<p>-Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/comment-page-1/#comment-11775</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 27 Jun 2007 16:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/#comment-11775</guid>
		<description>MessageBoxes, by their design, are modal. That is their function. 

To have a non-modal MessageBox you would have to write your own dialog class. 

In terms of CAB, nothing changes either way. The best pattern to use is still the same: have the presenter make a request to the view and allow the view to handle the implementation details. It could then either show a MessageBox, Dialog, or custom class if your choosing. 

I would personally beware of non-modal &quot;messagebox&quot; type of classes however. A MessageBox is meant to interrupt the user; it demands user attention. It is not meant to be ignored. A non-modal MessageBox would be like internet porn spam; you could potentially have dozens of messageboxes opening on the user simultaneously flooding them with little windows. If you need to notify the user of something but you don&#039;t consider the notification important enough to use a MessageBox in a modal manner (not wanting to interrupt the user) then consider utilizing some other notification method, like the status strip or a textbox on the toolbar. 

Think long and hard about the situation you&#039;re dealing with and the proper way to design a solution.</description>
		<content:encoded><![CDATA[<p>MessageBoxes, by their design, are modal. That is their function. </p>
<p>To have a non-modal MessageBox you would have to write your own dialog class. </p>
<p>In terms of CAB, nothing changes either way. The best pattern to use is still the same: have the presenter make a request to the view and allow the view to handle the implementation details. It could then either show a MessageBox, Dialog, or custom class if your choosing. </p>
<p>I would personally beware of non-modal &#8220;messagebox&#8221; type of classes however. A MessageBox is meant to interrupt the user; it demands user attention. It is not meant to be ignored. A non-modal MessageBox would be like internet porn spam; you could potentially have dozens of messageboxes opening on the user simultaneously flooding them with little windows. If you need to notify the user of something but you don&#8217;t consider the notification important enough to use a MessageBox in a modal manner (not wanting to interrupt the user) then consider utilizing some other notification method, like the status strip or a textbox on the toolbar. </p>
<p>Think long and hard about the situation you&#8217;re dealing with and the proper way to design a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Elliott</title>
		<link>http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/comment-page-1/#comment-11774</link>
		<dc:creator>David Elliott</dc:creator>
		<pubDate>Wed, 27 Jun 2007 16:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisholmesonline.com/2007/02/22/implementing-a-messagebox-in-cab/#comment-11774</guid>
		<description>So my original question deviates a little from the original topic.  It&#039;s not so much a NUnit question but a question in general.  I am looking for a way to have a message box pop up during normal user interaction, such that it doesn&#039;t hang the UI thread until the user clicks the message box.  The user would be allowed to continue doing what they were working on or could go to the menu bar, etc.  Basically the message box would have to be aware of where use is and determine if it needs to be modal or non-modal.</description>
		<content:encoded><![CDATA[<p>So my original question deviates a little from the original topic.  It&#8217;s not so much a NUnit question but a question in general.  I am looking for a way to have a message box pop up during normal user interaction, such that it doesn&#8217;t hang the UI thread until the user clicks the message box.  The user would be allowed to continue doing what they were working on or could go to the menu bar, etc.  Basically the message box would have to be aware of where use is and determine if it needs to be modal or non-modal.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

