<?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: Generic C# WinForms</title>
	<atom:link href="http://elegantcode.com/2008/09/29/generic-c-winforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2008/09/29/generic-c-winforms/</link>
	<description></description>
	<lastBuildDate>Wed, 17 Mar 2010 08:54:42 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Frank</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-35645</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 17 Oct 2008 07:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-35645</guid>
		<description>@Chris,

Yes it a dutch name. You are correct, if domain object gets complicated, reflection is not sufficient. I use it for very simple objects (poco).</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>Yes it a dutch name. You are correct, if domain object gets complicated, reflection is not sufficient. I use it for very simple objects (poco).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Brandsma</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-34269</link>
		<dc:creator>Chris Brandsma</dc:creator>
		<pubDate>Fri, 03 Oct 2008 14:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-34269</guid>
		<description>@Kiran,

Yes, it works just fine with the forms designer.</description>
		<content:encoded><![CDATA[<p>@Kiran,</p>
<p>Yes, it works just fine with the forms designer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-34250</link>
		<dc:creator>Kiran</dc:creator>
		<pubDate>Fri, 03 Oct 2008 12:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-34250</guid>
		<description>Will this new control work with Forms designer?</description>
		<content:encoded><![CDATA[<p>Will this new control work with Forms designer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Brandsma</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-34095</link>
		<dc:creator>Chris Brandsma</dc:creator>
		<pubDate>Thu, 02 Oct 2008 13:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-34095</guid>
		<description>@Frank   (Frank is a Dutch name?):

Your implementation is slightly different, you are generating the display objects on the fly based on a domain object.  I am instantiating my display class based on the type passed in.  Basically, you made a simple scaffold.  How does this work with lookups?  Also, I&#039;m dealing with more complicated edit logic (plus custom edit controls).

As far as using generics on the display class: That is correct, but that would only be beneficial if you were dealing with common controls, and then you would lose the true generic-ism of the form, that code would be tied to implementations.

It would be better if you had your display controls inherit from a common base class, and bind the generic to that base class instead of the one I showed.

Or, if you have a case with only one control needing custom behavior: create a controller class that creates the generic form and grabs a reference to the control, then the controller class can implement the custom behavior.   At most you would only have to expose one or two new properties to make that happen.

I guess I just don&#039;t like using reflection unless I absolutely have to.</description>
		<content:encoded><![CDATA[<p>@Frank   (Frank is a Dutch name?):</p>
<p>Your implementation is slightly different, you are generating the display objects on the fly based on a domain object.  I am instantiating my display class based on the type passed in.  Basically, you made a simple scaffold.  How does this work with lookups?  Also, I&#8217;m dealing with more complicated edit logic (plus custom edit controls).</p>
<p>As far as using generics on the display class: That is correct, but that would only be beneficial if you were dealing with common controls, and then you would lose the true generic-ism of the form, that code would be tied to implementations.</p>
<p>It would be better if you had your display controls inherit from a common base class, and bind the generic to that base class instead of the one I showed.</p>
<p>Or, if you have a case with only one control needing custom behavior: create a controller class that creates the generic form and grabs a reference to the control, then the controller class can implement the custom behavior.   At most you would only have to expose one or two new properties to make that happen.</p>
<p>I guess I just don&#8217;t like using reflection unless I absolutely have to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-34081</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 02 Oct 2008 09:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-34081</guid>
		<description>Nice article. You could also use reflection to make a winform which performs some basic actions on custom objects http://blog.denouter.net/2008/08/simple-reflection-form.html</description>
		<content:encoded><![CDATA[<p>Nice article. You could also use reflection to make a winform which performs some basic actions on custom objects <a href="http://blog.denouter.net/2008/08/simple-reflection-form.html" rel="nofollow">http://blog.denouter.net/2008/08/simple-reflection-form.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #191</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-34002</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #191</dc:creator>
		<pubDate>Wed, 01 Oct 2008 07:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-34002</guid>
		<description>[...] Generic C# WinForms - Chris Brandsma looks at using Generics in his winforms to help gain reuse of common functionality with strongly typed specific controls. [...]</description>
		<content:encoded><![CDATA[<p>[...] Generic C# WinForms &#8211; Chris Brandsma looks at using Generics in his winforms to help gain reuse of common functionality with strongly typed specific controls. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop &#8211; September 30, 2008 (Evening Edition) &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://elegantcode.com/2008/09/29/generic-c-winforms/comment-page-1/#comment-33982</link>
		<dc:creator>Dew Drop &#8211; September 30, 2008 (Evening Edition) &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Wed, 01 Oct 2008 02:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/09/29/generic-c-winforms/#comment-33982</guid>
		<description>[...] Generic C# WinForms (Chris Brandsma) [...]</description>
		<content:encoded><![CDATA[<p>[...] Generic C# WinForms (Chris Brandsma) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
