<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Caohuydan's Blog</title>
	<atom:link href="http://caohuydan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://caohuydan.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 13 Mar 2010 07:46:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='caohuydan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Caohuydan's Blog</title>
		<link>http://caohuydan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://caohuydan.wordpress.com/osd.xml" title="Caohuydan&#039;s Blog" />
	<atom:link rel='hub' href='http://caohuydan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Cách xây dựng ứng dụng WPF đa ngữ</title>
		<link>http://caohuydan.wordpress.com/2010/03/13/cach-xay-d%e1%bb%b1ng-%e1%bb%a9ng-d%e1%bb%a5ng-wpf-da-ng%e1%bb%af/</link>
		<comments>http://caohuydan.wordpress.com/2010/03/13/cach-xay-d%e1%bb%b1ng-%e1%bb%a9ng-d%e1%bb%a5ng-wpf-da-ng%e1%bb%af/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 07:46:57 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/?p=53</guid>
		<description><![CDATA[Tôi viết bài này để giới thiệu với các bạn cách xây dựng 1 ứng dụng WPF hỗ trợ nhiều ngôn ngữ Bước 1: chuẩn bị các yêu cầu ban đầu cho ứng dụng hỗ trợ đa ngữ Khi bạn xây dụng 1 form trong ứng dụng thì các thành phần trong form (Textblock, Textbox [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=53&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tôi viết bài này để giới thiệu với các bạn cách xây dựng 1 ứng dụng WPF hỗ trợ nhiều ngôn ngữ</p>
<p>Bước 1: chuẩn bị các yêu cầu ban đầu cho ứng dụng hỗ trợ đa ngữ</p>
<p>Khi bạn xây dụng 1 form trong ứng dụng thì các thành phần trong form (Textblock, Textbox ..) đều nên được đặt thuộc tính Name (việc này sẽ giúp cho việc dùng đa ngữ dễ dàng hơn)</p>
<p>Bạn thêm thành phần phía dưới vào bất kể chỗ nào trong thành phần &lt;PropertyGroup&gt; đầu tiên trong file .csproj (file project viết trên C#, nếu là VB.NET thì sẽ là .vbproj)</p>
<p>&lt;UICulture&gt;en-US&lt;/UICulture&gt;</p>
<p>khi bạn thêm thành phần trên thì trình biên dịch sẽ hiểu là ngôn ngữ mặc định của ứng dụng là US.English (tiếng Anh dùng ở Mỹ), bạn có thể dùng bất cứ ngôn ngữ mặc định nào tùy theo yêu cầu. Sau khi bạn thêm thành phần trên vào file .csproj thì trong lần biên dịch kế tiếp trình biên dịch sẽ tạo ra 1 thư mục con en-US trong thư mục chứa file chạy của bạn. Trong thư mục en-US sẽ có file DLL chứa các thông tin về ngôn ngữ (ví dụ: ứng dụng của bạn có tên là WpfApplication1 thì file DLL là WpfApplication1.resources.dll)</p>
<p><a href="http://caohuydan.files.wordpress.com/2010/03/img1.png"><img class="aligncenter size-full wp-image-55" title="Tập tin DLL chứa thông tin về ngôn ngữ" src="http://caohuydan.files.wordpress.com/2010/03/img1.png?w=307&#038;h=178" alt="" width="307" height="178" /></a></p>
<p>Thêm thuộc tính Uid cho tất cả các thành phần trong ứng dụng. Bạn có thể dùng msbuild.exe của Visual Studio để làm việc này</p>
<p>- Mở Visual Studio Command Prompt</p>
<p>- Để thêm Uid vào tất cả các thành phần trong project sử dụng cú pháp sau<br />
<code><br />
msbuild /t:updateuid LocalizableApplication.csproj (chú ý: thêm đường dẫn đầy đủ đến file .csproj)<br />
</code><br />
- Để kiểm tra 1 ứng dụng đã có đầy đủ Uid và có hợp lệ chưa thì dùng cú pháp sau<br />
<code><br />
msbuild /t:checkuid LocalizableApplication.csproj<br />
</code><br />
- Sau khi thêm các Uid thì các thành phần trong project của bạn sẽ có dạng như sau:<br />
<code><br />
&lt;Button x:Uid="cmdDoSomething" Name="cmdDoSomething" Margin="10" Padding="3"&gt;<br />
</code><br />
Bước chuẩn bị đã hoàn tất, chúng ta qua bước 2: Xuất nội dung ra file CSV</p>
<p>Để thực hiện việc xuất nội dung ra file CSV chúng ta sử dụng tool locbaml.exe được cung cấp trong bộ SDK của Window (bản 6.1), sau khi các bạn cài đặt xong SDK thì sẽ tool locbaml.exe sẽ tồn tại trong phần samples của bộ SDK. Nếu bạn chưa có thì có thể dùng tool<a href="http://www.4shared.com/file/240173465/34a9dde2/LocBaml.html" target="_blank"> locbaml.exe</a> mà tôi đã copy từ SDK.</p>
<p>- Copy file LocBaml.exe vào cùng thư mục với file exe của project (thường là bin\Debug)</p>
<p>- Mở cmd và di chuyển đến thư mục chứa file LocBaml.exe</p>
<p>- Chạy dòng lệnh sau để thực hiện xuất các nội dung ra file CSV</p>
<p>locbaml /parse en-US\LocalizableApplication.resources.dll</p>
<p>- Sau khi chạy hoàn tất thì bạn sẽ có thêm file WpfApplication1.resources.CSV trong cùng thư mục. Bạn có thể mở file CSV lên để xem, file được lưu theo cấu trúc sau:</p>
<p>WpfApplication1.g.en-US.resources:window1.baml,onotherLbl2:System.Windows.Controls.TextBlock.Text,Text,True,True,,This is another line of text</p>
<p>thành phần cuối cùng chính là nội dung cần chuyển đổi đa ngữ, bạn có thể dịch sang ngôn ngữ thứ hai mà ứng dụng cần hỗ trợ sau đó lưu lại. Ví dụ: This is a second line of text =&gt; Une ligne de texte (dịch sang tiếng Pháp)</p>
<p>Ta đã hoàn thành việc xuất nội dung ra file CSV và thực hiện dịch cho các nội dung đó. Bước tiếp theo ta sẽ tạo file DLL cho ngôn ngữ vừa dịch (fr-FR)</p>
<p>- Tạo thư mục con fr-FR cùng cấp với thư mục en-US (trong bin\Debug) để chứa file DLL sẽ được tạo ra ở bước kế tiếp</p>
<p>- Mở cmd và di chuyển đến thư mục chứa locbaml (bin\debug)</p>
<p>- Chạy dòng lệnh sau để tạo file DLL cho tiếng Pháp</p>
<p>locbaml /generate en-US\LocalizableApplication.resources.dll /trans:LocalizableApplication.resources.French.csv /cul:fr-FR /out:fr-FR</p>
<p>- Sau khi chạy hoàn tất thì bạn sẽ có file WpfApplication1.resources.dll trong thư mục fr-FR</p>
<p>Kết thúc: kiểm tra lại chương trình</p>
<p>Bạn có thể kiểm tra nhanh bằng cách thêm dòng lệnh sau vào file App.xaml.cs</p>
<p><a href="http://caohuydan.files.wordpress.com/2010/03/img2.png"><img class="aligncenter size-full wp-image-56" title="img2" src="http://caohuydan.files.wordpress.com/2010/03/img2.png?w=631&#038;h=121" alt="" width="631" height="121" /></a></p>
<p>Các bạn có thể tham khảo thêm tại đây: <a href="http://msdn.microsoft.com/en-us/library/ms788718.aspx">http://msdn.microsoft.com/en-us/library/ms788718.aspx</a></p>
<p>Chúc may mắn</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=53&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2010/03/13/cach-xay-d%e1%bb%b1ng-%e1%bb%a9ng-d%e1%bb%a5ng-wpf-da-ng%e1%bb%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2010/03/img1.png" medium="image">
			<media:title type="html">Tập tin DLL chứa thông tin về ngôn ngữ</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2010/03/img2.png" medium="image">
			<media:title type="html">img2</media:title>
		</media:content>
	</item>
		<item>
		<title>Build Silverlight application by Nant</title>
		<link>http://caohuydan.wordpress.com/2009/12/22/build-silverlight-application-by-nant/</link>
		<comments>http://caohuydan.wordpress.com/2009/12/22/build-silverlight-application-by-nant/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 04:39:47 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[Nant]]></category>
		<category><![CDATA[SilverLight]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/?p=42</guid>
		<description><![CDATA[After read some articles of build silverlight by Nant, I want to write this article to help someones who want to build SilverLight apps by Nant. First, we create some properties to use in build target &#60;property name=&#8221;buildDir&#8221; value=&#8221;SilverlightApplication2&#8243;/&#62; &#60;property name=&#8221;targetDir&#8221; value=&#8221;build_output&#8221;/&#62; &#60;property name=&#8221;nf35Dir&#8221; value=&#8221;C:\Windows\Microsoft.NET\Framework\v3.5&#8243; /&#62; &#60;property name=&#8221;slnFile&#8221; value=&#8221;D:\Silverlight\samples\SilverlightApplication2\SilverlightApplication2.sln&#8221; /&#62; &#60;property name=&#8221;projectName&#8221; value=&#8221;SilverlightApplication2&#8243;/&#62; Second, we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=42&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After read some articles of build silverlight by Nant, I want to write this article to help someones who want to build SilverLight apps by Nant.</p>
<p>First, we create some properties to use in build target</p>
<div id="_mcePaste"><em>&lt;property name=&#8221;buildDir&#8221; value=&#8221;SilverlightApplication2&#8243;/&gt;</em></div>
<div id="_mcePaste"><em>&lt;property name=&#8221;targetDir&#8221; value=&#8221;build_output&#8221;/&gt;</em></div>
<div id="_mcePaste"><em>&lt;property name=&#8221;nf35Dir&#8221; value=&#8221;C:\Windows\Microsoft.NET\Framework\v3.5&#8243; /&gt;</em></div>
<div id="_mcePaste"><em>&lt;property name=&#8221;slnFile&#8221; value=&#8221;D:\Silverlight\samples\SilverlightApplication2\SilverlightApplication2.sln&#8221; /&gt;</em></div>
<div id="_mcePaste"><em>&lt;property name=&#8221;projectName&#8221; value=&#8221;SilverlightApplication2&#8243;/&gt;</em></div>
<p>Second, we create a target build for Nant</p>
<div>
<div><em>&lt;target name=&#8221;build&#8221;&gt;</em></div>
<div><em> &lt;mkdir dir=&#8221;${targetDir}&#8221;/&gt;</em></div>
<div><em> &lt;exec program=&#8221;${nf35Dir}\msbuild.exe&#8221; basedir=&#8221;.&#8221;&gt;</em></div>
<div><em> &lt;arg value=&#8221;${slnFile}&#8221; /&gt;</em></div>
<div><em> &lt;arg value=&#8221;/p:OutDir=..\${targetDir}\&#8221; /&gt;</em></div>
<div><em> &lt;/exec&gt;</em></div>
<div><em>&lt;/target&gt;</em></div>
<div><em><br />
</em></div>
</div>
<p>and call it to build SilverLight application</p>
<div>
<div><em>&lt;target name=&#8221;clean&#8221; description=&#8221;cleans build directory&#8221;&gt;</em></div>
<div><em> &lt;delete dir=&#8221;${targetDir}&#8221; verbose=&#8221;true&#8221; /&gt;</em></div>
<div><em> &lt;/target&gt;</em></div>
</div>
<div>
<div><em> &lt;target name=&#8221;buildProject&#8221;&gt;</em></div>
<div><em> &lt;call target=&#8221;clean&#8221; /&gt;</em></div>
<div><em> &lt;call target=&#8221;build&#8221; /&gt;</em></div>
<div><em> &lt;/target&gt;</em></div>
<div><em><br />
</em></div>
</div>
<p>Finally, we open command line and run Nant to build.</p>
<div>Hope to help</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=42&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2009/12/22/build-silverlight-application-by-nant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>
	</item>
		<item>
		<title>Good ebooks for NHibernate&#8217;s programmers</title>
		<link>http://caohuydan.wordpress.com/2009/11/19/good-ebooks-for-nhibernates-programmers/</link>
		<comments>http://caohuydan.wordpress.com/2009/11/19/good-ebooks-for-nhibernates-programmers/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 06:29:38 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[NHibernate]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/2009/11/19/good-ebooks-for-nhibernates-programmers/</guid>
		<description><![CDATA[NHibernate in Action: download it here Happy programming<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=37&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>NHibernate in Action: download it <a title="NHibernate in Action" href="http://www.4shared.com/file/155130629/1add9a71/MNhIA_2009_.html" target="_blank">here</a></p>
<p>Happy programming <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=37&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2009/11/19/good-ebooks-for-nhibernates-programmers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>
	</item>
		<item>
		<title>Drag and Drop TreeViewItem in WPF</title>
		<link>http://caohuydan.wordpress.com/2009/10/09/drag-and-drop-treeviewitem-in-wpf/</link>
		<comments>http://caohuydan.wordpress.com/2009/10/09/drag-and-drop-treeviewitem-in-wpf/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:59:47 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[Window Presentation Foundation]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/?p=29</guid>
		<description><![CDATA[There&#8217;re many articles write about this topic, after read on some articles I think I should write a new one to summary how to drag and drop treeviewitem in WPF in a simple way for any one who begin in WPF 1. Create a WPF Application 2. Add treeview to Window1.xaml and add some initial [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=29&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There&#8217;re many articles write about this topic, after read on some articles I think I should write a new one to summary how to drag and drop treeviewitem in WPF in a simple way for any one who begin in WPF <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1. Create a WPF Application</p>
<p>2. Add treeview to Window1.xaml and add some initial TreeViewItem</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeView Margin=&#8221;12,12,35,31&#8243; Name=&#8221;treeView1&#8243; AllowDrop=&#8221;True&#8221;&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 1&#8243; AllowDrop=&#8221;True&#8221;&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 1.1&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 1.2&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 1.3&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;/TreeViewItem&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 2&#8243; AllowDrop=&#8221;True&#8221; &gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 2.1&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 2.2&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 2.3&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;/TreeViewItem&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 3&#8243; AllowDrop=&#8221;True&#8221;&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 3.1&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 3.2&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;TreeViewItem Grid.IsSharedSizeScope=&#8221;False&#8221; Header=&#8221;Item 3.3&#8243; AllowDrop=&#8221;True&#8221; /&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;/TreeViewItem&gt;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:16px;width:1px;height:1px;">&lt;/TreeView&gt;</div>
<p><em><img class="aligncenter size-full wp-image-30" title="TVXamlCode" src="http://caohuydan.files.wordpress.com/2009/10/tvxamlcode.jpg?w=734&#038;h=292" alt="TVXamlCode" width="734" height="292" /></em></p>
<p>3. Create some functions to handle &#8220;MouseMove&#8221;, &#8220;DragOver&#8221;, &#8220;Drop&#8221; events of TreeView (add these code below to Constructor of Window1 form)</p>
<p><img class="aligncenter size-full wp-image-31" title="HandlesDnDFuncs" src="http://caohuydan.files.wordpress.com/2009/10/handlesdndfuncs.jpg?w=548&#038;h=56" alt="HandlesDnDFuncs" width="548" height="56" /></p>
<p>4. treeView1_MouseMove function:</p>
<p><img class="aligncenter size-full wp-image-32" title="MouseMoveFunc" src="http://caohuydan.files.wordpress.com/2009/10/mousemovefunc.jpg?w=583&#038;h=204" alt="MouseMoveFunc" width="583" height="204" /></p>
<p>5. Drag_Over function</p>
<p><img class="aligncenter size-full wp-image-33" title="DragOverFunc" src="http://caohuydan.files.wordpress.com/2009/10/dragoverfunc.jpg?w=474&#038;h=224" alt="DragOverFunc" width="474" height="224" /></p>
<p>6. Drop function</p>
<p><img class="aligncenter size-full wp-image-34" title="DropFunc" src="http://caohuydan.files.wordpress.com/2009/10/dropfunc.jpg?w=668&#038;h=307" alt="DropFunc" width="668" height="307" />7. Build and test application</p>
<p>P/S: you can get sample project <a href="http://www.4shared.com/file/139265706/c1f3e14a/DnDWpfApp.html" target="_blank">here</a></p>
<p>Reference links:</p>
<p>- <a href="http://msdn.microsoft.com/en-us/library/bb295243.aspx">http://msdn.microsoft.com/en-us/library/bb295243.aspx</a></p>
<p>- <a href="http://blogs.infosupport.com/blogs/willemm/archive/2007/06/11/Implementing-Simple-drag_2D00_and_2D00_drop-operations-on-a-WPF-treeview.aspx">http://blogs.infosupport.com/blogs/willemm/archive/2007/06/11/Implementing-Simple-drag_2D00_and_2D00_drop-operations-on-a-WPF-treeview.aspx</a></p>
<p><a href="http://www.4shared.com/file/139265706/c1f3e14a/DnDWpfApp.html" target="_blank"></a>Happy programming  :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=29&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2009/10/09/drag-and-drop-treeviewitem-in-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/10/tvxamlcode.jpg" medium="image">
			<media:title type="html">TVXamlCode</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/10/handlesdndfuncs.jpg" medium="image">
			<media:title type="html">HandlesDnDFuncs</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/10/mousemovefunc.jpg" medium="image">
			<media:title type="html">MouseMoveFunc</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/10/dragoverfunc.jpg" medium="image">
			<media:title type="html">DragOverFunc</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/10/dropfunc.jpg" medium="image">
			<media:title type="html">DropFunc</media:title>
		</media:content>
	</item>
		<item>
		<title>A simple Webpart!</title>
		<link>http://caohuydan.wordpress.com/2009/09/15/a-simple-webpart/</link>
		<comments>http://caohuydan.wordpress.com/2009/09/15/a-simple-webpart/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 07:47:28 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/?p=26</guid>
		<description><![CDATA[I upload a simple webpart for SharePoint, you can download it here Note: Change {datasource} to your real datasource and this webpart use Northwnd DB<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=26&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I upload a simple webpart for SharePoint, you can download it <a href="http://www.4shared.com/file/132746115/7fd3c4c4/DatabaseConnWebPart.html">here</a></p>
<p><a href="http://www.4shared.com/file/132746115/7fd3c4c4/DatabaseConnWebPart.html"></a>Note: Change {datasource} to your real datasource and this webpart use Northwnd DB</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=26&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2009/09/15/a-simple-webpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploy Webpart into SharePoint!</title>
		<link>http://caohuydan.wordpress.com/2009/09/15/deploy-webpart-into-sharepoint/</link>
		<comments>http://caohuydan.wordpress.com/2009/09/15/deploy-webpart-into-sharepoint/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 03:05:15 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/?p=5</guid>
		<description><![CDATA[I write this article after has some days to research a way to delpoy a webpart into sharepoint, hope to help you. Let&#8217;s begin: Prerequisite - Install Visual Studio 2008 extension for Window SharePoint tool (get it here) to create a webpart project in Visual Studio - Install WSPBuilder tool to build a webpart in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=5&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I write this article after has some days to research a way to delpoy a webpart into sharepoint, hope to help you. Let&#8217;s begin:</p>
<p>Prerequisite</p>
<p>- Install Visual Studio 2008 extension for Window SharePoint tool (get it <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=fb9d4b85-da2a-432e-91fb-d505199c49f6">here</a>) to create a webpart project in Visual Studio</p>
<p>- Install WSPBuilder tool to build a webpart in dev computer (get it <a href="http://www.codeplex.com/wspbuilder">here</a>)</p>
<p>Create WebPart</p>
<p>Do these steps to create a webpart</p>
<p>- Open Visual Studio, create a new webpart project</p>
<div id="attachment_16" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-16" title="CreateWebPartProject" src="http://caohuydan.files.wordpress.com/2009/09/createwebpartproject1.jpg?w=300&#038;h=215" alt="Create a Webpart project" width="300" height="215" /><p class="wp-caption-text">Create a Webpart project</p></div>
<div id="attachment_19" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-19" title="FolderStructure" src="http://caohuydan.files.wordpress.com/2009/09/folderstructure1.jpg?w=300&#038;h=193" alt="Folder structure of webpart project" width="300" height="193" /><p class="wp-caption-text">Folder structure of webpart project</p></div>
<p>- Overridden a Render function of WebPart base class in WebPart1.cs file</p>
<div id="attachment_18" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-18" title="OverriddenRenderFunc" src="http://caohuydan.files.wordpress.com/2009/09/overriddenrenderfunc1.jpg?w=300&#038;h=197" alt="Overridden render function of base class" width="300" height="197" /><p class="wp-caption-text">Overridden render function of base class</p></div>
<p>Deploy webpart into SharePoint</p>
<p>Do these steps to deploy a webpart into SharePoint</p>
<p>- Create a .wsp file for deploying</p>
<p>o Build your WebPart project</p>
<p>o Right-click on project and choose “WSPBuilder\Build WSP” to build WSP file</p>
<div id="attachment_20" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-20" title="BuildWSPFile" src="http://caohuydan.files.wordpress.com/2009/09/buildwspfile1.jpg?w=300&#038;h=236" alt="Build Wsp file" width="300" height="236" /><p class="wp-caption-text">Build Wsp file</p></div>
<div id="attachment_21" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-21" title="FSAfterBuildWSP" src="http://caohuydan.files.wordpress.com/2009/09/fsafterbuildwsp1.jpg?w=300&#038;h=213" alt="WSP file in Webpart project" width="300" height="213" /><p class="wp-caption-text">WSP file in Webpart project</p></div>
<p>o Send .wsp file to SharePoint administrator to deploy into SharePoint</p>
<p>- Deploy webpart into SharePoint</p>
<p>o We are now ready to deploy this solution file into SharePoint and we do this by using the STSADM.exe tool. This tool is located in your SharePoint installation directory under the bin folder mine was located here C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN. I strongly suggest you add this path to you PATH environment variable for ease of use.</p>
<p>o Use STSADM.exe tool to deploy wsp file to SharePoint</p>
<div id="attachment_22" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-22" title="AddSolution" src="http://caohuydan.files.wordpress.com/2009/09/addsolution1.jpg?w=450&#038;h=45" alt="Add solution by STSADM tool" width="450" height="45" /><p class="wp-caption-text">Add solution by STSADM tool</p></div>
<p>o Open up Central Administration and navigate to ‘Operations’ under ‘Global Configuration’ click ‘Solution Management’. You should see your Web Part Solution sitting in the list with ‘Not Deployed’ as its status. Click on the Solution and click the ‘Deploy Solution’ button.</p>
<p>o You should now be able to add your Web Part to any sites Web Part gallery.</p>
<p>Upgrade a exist webpart</p>
<p>- Update your webpart project</p>
<p>- Build a new .wsp file and send it to SharePoint Administrator</p>
<p>- Upgrade this webpart by STSADM.exe tool</p>
<p><img class="aligncenter size-full wp-image-23" title="UpgradeSolution" src="http://caohuydan.files.wordpress.com/2009/09/upgradesolution1.jpg?w=450&#038;h=53" alt="UpgradeSolution" width="450" height="53" /></p>
<p>Happy Sharepointing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=5&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2009/09/15/deploy-webpart-into-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/createwebpartproject1.jpg?w=300" medium="image">
			<media:title type="html">CreateWebPartProject</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/folderstructure1.jpg?w=300" medium="image">
			<media:title type="html">FolderStructure</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/overriddenrenderfunc1.jpg?w=300" medium="image">
			<media:title type="html">OverriddenRenderFunc</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/buildwspfile1.jpg?w=300" medium="image">
			<media:title type="html">BuildWSPFile</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/fsafterbuildwsp1.jpg?w=300" medium="image">
			<media:title type="html">FSAfterBuildWSP</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/addsolution1.jpg" medium="image">
			<media:title type="html">AddSolution</media:title>
		</media:content>

		<media:content url="http://caohuydan.files.wordpress.com/2009/09/upgradesolution1.jpg" medium="image">
			<media:title type="html">UpgradeSolution</media:title>
		</media:content>
	</item>
		<item>
		<title>Phải làm gì trước lời Phó Thủ tướng</title>
		<link>http://caohuydan.wordpress.com/2009/09/08/ph%e1%ba%a3i-lam-gi-tr%c6%b0%e1%bb%9bc-l%e1%bb%9di-pho-th%e1%bb%a7-t%c6%b0%e1%bb%9bng/</link>
		<comments>http://caohuydan.wordpress.com/2009/09/08/ph%e1%ba%a3i-lam-gi-tr%c6%b0%e1%bb%9bc-l%e1%bb%9di-pho-th%e1%bb%a7-t%c6%b0%e1%bb%9bng/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 02:53:08 +0000</pubDate>
		<dc:creator>caohuydan</dc:creator>
				<category><![CDATA[Political]]></category>

		<guid isPermaLink="false">http://caohuydan.wordpress.com/?p=3</guid>
		<description><![CDATA[Thái Hữu Tình Trước hết cũng xin trịnh trọng nhắc lại lời Phó Thủ tướng Trương Vĩnh Trọng: “Cho đến lúc này, dư luận trong nước cũng như trên thế giới, kể cả những người khó tính, [còn] ai nói đến vấn đề khai thác bô-xít ở Tây Nguyên nữa. Điều đó cho thấy, khai [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=3&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;margin:0 0 15px;padding:0;"><strong>Thái Hữu Tình</strong></p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Trước hết cũng xin trịnh trọng nhắc lại lời Phó Thủ tướng Trương Vĩnh Trọng:</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">“<em>Cho đến lúc này, dư luận trong nước cũng như trên thế giới, kể cả những người khó tính, [còn] ai nói đến vấn đề khai thác bô-xít ở Tây Nguyên nữa. Điều đó cho thấy, khai thác bô-xít ở Tây Nguyên là đúng đắn và đang gặp thuận lợi</em>” (theo <em>VietNamnet</em>).</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Nhiều người bảo ông Phó Thủ tướng kém cỏi, ù lỳ, “trình độ văn hóa” hơi bị thấp. Rất sai! Ông Trương Duy Nhất thì bán tín bán nghi: Chẳng lẽ PTT chẳng nghe thấy gì hết, hay nghe thấy mà nói dối là không nghe thấy? Chẳng lẽ lời nói dối lại phát ra từ nơi… một Phó Thủ tướng? Hay là ông lỡ lời? Hay là chính phủ của ông… ngủ gật?</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Tôi thì hơi ngược lại chút xíu, đánh giá trình độ Phó Thủ tướng hơi bị… cao!</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Ví dụ : Để chứng tỏ sự đồng tình trong vụ làm Bô-xít thì ông khẳng định “cả trong nước cũng như trên thế giới” đều không ai kêu ca gì”. Sự đánh giá như vậy là có tính khảo sát trên diện rộng, bao trùm chứ đâu chỉ nhìn hẹp nơi xó… Internet như chúng ta?</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Ấy là sự đồng tình xét về diện, về “lượng”. Còn khảo sát sâu về chất, về “điểm” thì ông khẳng định “cả những người khó tính” cũng không thấy họ nói đến chuyện Bô-xít nữa! (Những người “khó tính” nghe rõ đấy nhá!).</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Ông đưa kết quả khảo sát chắc nịch ấy ra nhằm mục đích gì?</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Chỗ này rất thâm… thúy nên ta phải “mở ngoặc” với nhau chút xíu. Xin thưa, hai chỗ vốn là yếu nhất của chương trình khai thác Bô-xít là:</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">- KHÔNG ĐÚNG ĐẮN: vì phá môi trường, hiệu quả kinh tế thì thấp, nguy cơ mất nước lại cao.</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">- KHÔNG GẶP THUẬN LỢI: bị nhiều người phản đối, có tới 3 bức thư can gián của Đại tướng Võ Nguyên Giáp, có nhiều luận chứng phản biện khoa học, có nhiều nghìn chữ ký Kiến nghị phản đối, có báo chí bên ngoài suốt ngày nọ sang ngày kia đăng bài cảnh tỉnh, có cả một đơn kiện Thủ tướng, thậm chí có tranh luận ngay trong Quốc hội… Tóm lại là không thuận lợi vì không có “nhân hòa”!</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Thì đây, Phó Thủ tướng đánh quả tự hào vào trúng hai yếu huyệt ấy: Vụ Bô-xít rất ĐÚNG ĐẮN và ĐANG GẶP THUẬN LỢI!</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Xin quý vị chú ý cho chữ ĐANG. ĐANG tức là đang hiển thị sờ sờ trước mắt, chứ không phải chỉ là hy vọng hay tiên liệu đâu nhé! ĐANG còn có ý là trong quá khứ thì có thể hơi không thuận lợi một chút nhưng hiện tại thì đâu vào đấy rồi, khó khăn đã được dẹp xong xuôi rồi!</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Chỉ một đoạn ngắn có hơn 3 dòng mà ý tứ đầy đủ, khúc chiết, mãnh liệt, đạt ý đồ lớn một cách mỹ mãn như thế mà bảo kém sao được? Bảo điếc ư? <em>Điếc như thế ai không muốn điếc</em>, thưa cụ Tam nguyên Yên Đổ?</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Nếu ta biết phía bên kia đã “cao thủ” như vậy, thì theo ý tôi ta chẳng nên phê bình, cũng đừng khuyên, đừng trách…, những động tác ấy với bậc cao thủ dày dạn chỉ là rũ bụi.</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Hãy quay lại phía mình, phía những người phản biện, xem mình phải làm gì?</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Ta hãy nghe lời Phó Thủ tướng, và coi đây là thông điệp chính thức của Chính phủ, nói nôm na cho dễ hiểu như sau:</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">- <span style="color:#0000ff;">Sở dĩ Chính phủ cứ tiếp tục đẩy mạnh khai thác Bô-xít vì <strong>không nghe thấy, không đọc thấy</strong> ai phản đối gì cả </span>(chứ một nhà nước của dân, do dân và vì dân mà nghe thấy giới tinh hoa của dân lên tiếng thì phải giương hết tai lên mà nghe, như lời Bác dạy, chứ lẽ nào lại không? Kẻ nào nói Đảng không coi Dân ra gì là nói bậy!).</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;"><span style="color:#0000ff;"><strong>Thông điệp ấy cho thấy ta nói còn ít quá, còn nhỏ quá… mà Chính phủ thì trăm công nghìn việc, ồn ã suốt ngày nên không nghe thấy.</strong></span></p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Có thể chúng ta thấy mình đã nói nhiều, đã viết nhiều, đã làm nhiều, nhưng như thế vẫn chưa đủ “dose”, so với nhu cầu còn quá bất cập, rõ ràng như vậy ! Anh nào bảo chúng ta đã nói quá nhiều, nên chỉnh lý bớt đi là nói ngược, là trái với đặc điểm của Chính phủ, là làm hại Chính phủ, khiến Chính phủ không nghe được lời của dân (tôi nghi lời khuyên này có ác ý với Nhà nước, tách Nhà nước với dân).</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">KẾT LUẬN RÚT RA:</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Vậy tiếp thu thông tin từ Phó Thủ tướng, <span style="color:#0000ff;"><strong>từ nay trang Web Bô-xít cũng như tất cả những ai thấy việc để Trung Quốc khai thác Bô-xít ở “nóc nhà của Đông dương” là bất lợi, là mối nguy cho đất nước, thì phải đẩy mạnh hơn nữa tiếng nói phản biện của mình để Nhà nước nghe thấy. Hãy nói to hơn, nhiều hơn. Nếu một người nói còn nhỏ thì nhiều người “đông tay nên bộp” vỗ cho to lên, chứ nói như lâu nay thì các vị trong Chính phủ mình chưa nghe thấy gì cả. Các báo chí ở ngoài nước cũng trong diện được Phó Thủ tướng “khảo sát” lắng nghe đấy (như ông đã bộc lộ ở trên) thì cũng nên tăng “volume” giùm.</strong></span></p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Bao nhiêu tiếng nói KHÔNG ĐỒNG THUẬN nói lên, viết lên ở khắp nơi mà vẫn được tổng kết là ĐỒNG THUẬN CAO! Người ta vẫn không nhìn thấy?Vậy có lẽ trang Bô-xít nên có một khẩu hiệu chữ lớn, màu đỏ bô-xít, bên cạnh tấm ảnh cụ Giáp để người kém mắt cũng nhìn ra, nội dung là: <span style="text-decoration:underline;">ĐÂY</span>! <span style="text-decoration:underline;">CHÚNG TÔI KHÔNG ĐỒNG THUẬN </span>! Ai cũng nhìn thấy ngay, trừ số rất ít người bị bệnh Dalton, mú màu đỏ bẩm sinh.</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Các báo chí ở ngoài nước cũng trong diện được Phó Thủ tướng “khảo sát” lắng nghe đấy (như ông đã bộc lộ ở trên) thì cũng nên tăng “volume” giùm.</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Đừng ngại, bởi độ nhạy thính giác của con người phụ thuộc rất khủng khiếp vào khu vực dùng để ngồi, xin nhớ cho!</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;">Một người cũng nghễnh ngãng</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;"><strong>THT</strong> (<em>8-9-09</em>)</p>
<p style="text-align:justify;margin:0 0 15px;padding:0;"><strong>HT</strong> Mạng Bauxite Việt Nam biên tập</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caohuydan.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caohuydan.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caohuydan.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caohuydan.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caohuydan.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caohuydan.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caohuydan.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caohuydan.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caohuydan.wordpress.com&amp;blog=6912554&amp;post=3&amp;subd=caohuydan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caohuydan.wordpress.com/2009/09/08/ph%e1%ba%a3i-lam-gi-tr%c6%b0%e1%bb%9bc-l%e1%bb%9di-pho-th%e1%bb%a7-t%c6%b0%e1%bb%9bng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/193325a62cb9c9df6083acba9bcf9df0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caohuydan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
