<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Eric_K1m的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Eric_K1m</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Eric_K1m]]></copyright><item><title><![CDATA[Powershell演示WPF弹窗]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/38759647</link><guid>https://blog.csdn.net/Eric_K1m/article/details/38759647</guid><author>Eric_K1m</author><pubDate>Fri, 22 Aug 2014 17:19:03 +0800</pubDate><description><![CDATA[WPF (Windows Presentation Foundation) 技术能让你创建窗口和对话框。它的优势是在窗体设计时能与代码分开。
这里有个简单的显示弹出消息练习。这个消息是定义在XAML代码中它的实现类似HTML（但是请区分大小写）。你能轻松的调整字体大小，内容，颜色等等。不需要嵌入任何代码。







1

2

3

4

5

6

]]></description><category></category></item><item><title><![CDATA[C#如何以管理员身份运行程序]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/38585011</link><guid>https://blog.csdn.net/Eric_K1m/article/details/38585011</guid><author>Eric_K1m</author><pubDate>Fri, 15 Aug 2014 14:45:31 +0800</pubDate><description><![CDATA[C#如何以管理员身份运行程序




     在使用winform程序获取调用cmd命令提示符时，如果是win7以上的操作系统，会需要必须以管理员身份运行才会执行成功，否则无效果或提示错误。
     比如在通过winform程序执行cmd命令时，某些情况下如果不是以管理员身份运行，则会提示命令无效。
     或者通过winform程序执行Windows Service 服务时，]]></description><category></category></item><item><title><![CDATA[C#对JSON的序列化与发序列化]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/38516675</link><guid>https://blog.csdn.net/Eric_K1m/article/details/38516675</guid><author>Eric_K1m</author><pubDate>Tue, 12 Aug 2014 15:57:04 +0800</pubDate><description><![CDATA[1） 首先去http://json.codeplex.com/ 下载Newtonsoft.Json这个Reference DLL。
2）]]></description><category></category></item><item><title><![CDATA[Powershell连接数据库]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/38403769</link><guid>https://blog.csdn.net/Eric_K1m/article/details/38403769</guid><author>Eric_K1m</author><pubDate>Wed, 06 Aug 2014 16:59:01 +0800</pubDate><description><![CDATA[第一种查询数据存储到DataSet中：]]></description><category></category></item><item><title><![CDATA[在 PowerShell 中使用 SQL Server]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/38402633</link><guid>https://blog.csdn.net/Eric_K1m/article/details/38402633</guid><author>Eric_K1m</author><pubDate>Wed, 06 Aug 2014 16:06:03 +0800</pubDate><description><![CDATA[在 PowerShell 中使用 SQL Server （3）

2013-05-06 12:09:20

标签：SQL PowerShell

原创作品，允许转载，转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://jimshu.blog.51cto.com/3171847/1193985


一、安装PowerShell for ]]></description><category></category></item><item><title><![CDATA[C#_WinForm_打开一个进程、文件等.]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/37656857</link><guid>https://blog.csdn.net/Eric_K1m/article/details/37656857</guid><author>Eric_K1m</author><pubDate>Thu, 10 Jul 2014 15:16:39 +0800</pubDate><description><![CDATA[在WinForm/C#中打开一个文件，主要是用到进程的知识。
下面是一些实例，可以模仿着去实现。
1.          打开文件
private 
void btOpenFile_Click(objectsender, 
EventArgs e)
{
//定义一个ProcessStartInfo实例
System.Diagnostics.ProcessStartInfoinfo ]]></description><category></category></item><item><title><![CDATA[通过CMD来打开一个C#程序，并传入参数]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/37518579</link><guid>https://blog.csdn.net/Eric_K1m/article/details/37518579</guid><author>Eric_K1m</author><pubDate>Mon, 07 Jul 2014 16:10:03 +0800</pubDate><description><![CDATA[通过Main方法中的string[]  args来获取就可以了]]></description><category></category></item><item><title><![CDATA[WIN7里使用msg命令发送消息的方法]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/37511153</link><guid>https://blog.csdn.net/Eric_K1m/article/details/37511153</guid><author>Eric_K1m</author><pubDate>Mon, 07 Jul 2014 14:44:28 +0800</pubDate><description><![CDATA[由于WIN7,WIN8系统安全加强,所以Net Send命令和Messenger服务被取消了.


在WIN7里可以使用msg命令,但是msg命令被严格限制,以防止被病毒利用


使用方法如下：


想使用msg这个命令，首先要修改注册表。


1. 打算接收命令的WIN7,WIN8,WIN2008机器必须修改注册表


开始菜单---->运行--->输入regedi]]></description><category></category></item><item><title><![CDATA[Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/36666985</link><guid>https://blog.csdn.net/Eric_K1m/article/details/36666985</guid><author>Eric_K1m</author><pubDate>Thu, 03 Jul 2014 16:03:51 +0800</pubDate><description><![CDATA[解决：Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode


今天在部署一个WCF服务的时候，获取运行出错如下：
Could not load type 'System.ServiceModel.Activation.HttpModule' fro]]></description><category></category></item><item><title><![CDATA[如何制作Plugin安装Setup文件]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/25127447</link><guid>https://blog.csdn.net/Eric_K1m/article/details/25127447</guid><author>Eric_K1m</author><pubDate>Tue, 06 May 2014 15:13:04 +0800</pubDate><description><![CDATA[1. 在项目里添加一个Setup安装程序 -]]></description><category></category></item><item><title><![CDATA[VS2010制作安装文件后，使用安装文件时出错-“Can't find console path, Please install main UI...”]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/24652669</link><guid>https://blog.csdn.net/Eric_K1m/article/details/24652669</guid><author>Eric_K1m</author><pubDate>Mon, 28 Apr 2014 16:46:31 +0800</pubDate><description><![CDATA[该错误是由于在设置安装文件安装luji]]></description><category></category></item><item><title><![CDATA[Error: [Microsoft][ODBC 驱动程序管理器] 在指定的 DSN 中，驱动程序和应用程序之间的体系结构不匹配]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/22161321</link><guid>https://blog.csdn.net/Eric_K1m/article/details/22161321</guid><author>Eric_K1m</author><pubDate>Wed, 26 Mar 2014 11:26:50 +0800</pubDate><description><![CDATA[该错误时在添加PostgreSQL的时候产生的，这是由于我的系统是64位但是PostgreSQL的驱动是32位造成的，首先要安装Post供热SQL64位的驱动，然后在CMD里运行：
C:\Users\PX>%SystemRoot%\syswow64\odbcad32.exe


C:\Users\PX>%SystemRoot%\system32\odbcad32.exe



分别]]></description><category></category></item><item><title><![CDATA[简单的Silverlight+MVVM+WCF Ria Service 对数据的增删改查DEMO]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17714329</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17714329</guid><author>Eric_K1m</author><pubDate>Tue, 31 Dec 2013 14:30:49 +0800</pubDate><description><![CDATA[1） xaml View代码：
<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="DEMO1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
]]></description><category></category></item><item><title><![CDATA[Silverlight MVVM + WCF Ria Service 餐馆点菜DEMO]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17448707</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17448707</guid><author>Eric_K1m</author><pubDate>Fri, 20 Dec 2013 16:43:01 +0800</pubDate><description><![CDATA[1） 新建Silverlight Application，然后再.Web项目中添加相应数据库的Entity Data Model 数据模型。
2） 在.Web项目中添加中间层DomainService，来用于在Silverlight Application中访问Entity Data Model数据库。
3） 设计UI界面MainPage.xaml：


<UserControl xml]]></description><category></category></item><item><title><![CDATA[SubmitChanges后就报一个错 code：4004. Category：ManagedRuntimeError]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17437193</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17437193</guid><author>Eric_K1m</author><pubDate>Fri, 20 Dec 2013 10:45:37 +0800</pubDate><description><![CDATA[这是由于数据库中插入的表没有设置主键而造成的。


注意事项：

　　1. 数据库中的表一定要有主键。因为我不是专业人事，我一直没认为主键是个必须的东西，所以我的个别数据表因为想偷懒而没有设置主键，尤其在我设置了自增值字段如***id以后。但是如果在这种情况下你执行SubmitChanges()程序会处于停滞状态，也不报错。我实验了半天，终于想起了生成ado实体数据时vs2010给我的警]]></description><category></category></item><item><title><![CDATA[深入委托和事件]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17297681</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17297681</guid><author>Eric_K1m</author><pubDate>Fri, 13 Dec 2013 14:19:52 +0800</pubDate><description><![CDATA[事件是委托的一种模型。


一瓶牛奶和一张报纸引发的 "委托" 事件
有一个人是定牛奶的，牛奶箱子每天都会有牛奶，有一天我不想喝牛奶了，想要定报纸，想要使用原来的牛奶箱来投递报纸，希望报纸公司把报纸投递到牛奶箱子了，但报纸公司只认报箱，不能投到牛奶箱子里。通过这件事情引发出委托事件的思考。


委托的定义 （What）
委托是一种引用类型，它可以生成实例，有点相当于一个类，它有一个]]></description><category></category></item><item><title><![CDATA[WPF中的Style]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17217849</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17217849</guid><author>Eric_K1m</author><pubDate>Mon, 09 Dec 2013 14:36:12 +0800</pubDate><description><![CDATA[构成Style最重要的两种元素是Setter和Trigger，Setter类帮助我们设置控件的静态外观风格，Trigger类帮助我们设置控件的行为风格。
Style中的Setter
Setter——设置器，我们给属性赋值的时候一般都采用“属性名 = 属性值”的形式。Setter类的Property属性用来指明你想为目标的哪个属性赋值；Setter类的Value属性则是我们所要指定的属性值。
]]></description><category></category></item><item><title><![CDATA[WPF中的模板]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17114823</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17114823</guid><author>Eric_K1m</author><pubDate>Mon, 09 Dec 2013 10:11:15 +0800</pubDate><description><![CDATA[模板的内涵
从字面上看，模板就是“具有一定规格的样板”，有了模板，我们就可以依照它制造很多一样的实例。
Binding和基于Binding的数据驱动界面是WPF的核心部分，WPF最精彩的部分是模板（Template）。
WPF系统与程序内容（业务逻辑）的边界是Binding，Binding把数据源源不断地从程序内部送出来，交由界面元素来显示，又把从界面元素收集来的数据传送回程序内部。界面元素]]></description><category></category></item><item><title><![CDATA[WPF中的资源]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17096257</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17096257</guid><author>Eric_K1m</author><pubDate>Wed, 04 Dec 2013 10:27:32 +0800</pubDate><description><![CDATA[我们把有用的东西称为资源。“兵马未动，粮草先行”——程序中的各种数据就是算法的原料和粮草。WPF不但支持程序级的传统资源，同时还推出了独具特色的对象级资源，每个界面元素都可以携带自己的资源并可被自己的子级元素共享。这样一来，WPF程序中的数据就分为四个等级存储：数据库里的数据相当于存放在仓库里，资源文件里的数据相当于放在旅行箱里，WPF对象资源里数据相当于放在随身携带的背包里，变量中的数据相当于拿]]></description><category></category></item><item><title><![CDATA[WPF中的命令]]></title><link>https://blog.csdn.net/Eric_K1m/article/details/17075721</link><guid>https://blog.csdn.net/Eric_K1m/article/details/17075721</guid><author>Eric_K1m</author><pubDate>Tue, 03 Dec 2013 15:00:46 +0800</pubDate><description><![CDATA[锦囊妙计的本质就是命令。
有了路由事件为什么还需要命令系统呢？事件的作用是发布、传播一些消息，消息送达接收者，事件的使命也就完成了，至于如何响应事件送来的消息事件并不做规定，每个接收者可以使用自己的行为来响应事件。也就是说，事件不具有约束力。命令与事件的区别就在于命令是具有约束力的。
实际编程中就算只使用事件、不使用命令，程序的逻辑也一样可以被驱动的很好，但我们不能阻止程序员按自己的习惯去编写]]></description><category></category></item></channel></rss>