Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 55 下一页
摘要: 前段时间DevExpress和微软共同发布了CodeRush Xpress for C#,它包含了Code Rush和Refactor! Pro中的一些特性。这些特性包括增强的导航、选择工具、代码创建功能以及强大的重构能力。另外CodeRush Xpress还对C#中既有的重构功能做了封装,这些功能用起来更为方便了。不过它不支持Express版的Visual Studio。CodeRush Xpress的强点包括易于访问的重构和代码创建功能、强大的文件和代码导航功能、一组编辑器、选择、剪贴板工具等。下面简单介绍一下几个功能。1. 使用中生成(Generate From Usage) 本来C#中 阅读全文
posted @ 2011-09-21 22:43 Angelo Lee 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 什么叫WPF的资源(Resource)?资源是保存在可执行文件中的一种不可执行数据。在WPF的资源中,几乎可以包含图像、字符串等所有的任意CLR对象,只要对象有一个默认的构造函数和独立的属性。也就是说,应用程序中非程序代码的内容,比如点阵图、颜色、字型、动画/影片档以及字符串常量值,可将它们从程序中独立出来,单独包装成"资源(Resource)"。静态资源(Static Resource),动态资源(Dynamic Resources)。这两者的区别是:静态资源在第一次编译后即确定其对象或值,之后不能对其进行修改。动态资源则是在运行时决定,当运行过程中真正需要时,才到资源目 阅读全文
posted @ 2011-09-20 16:32 Angelo Lee 阅读(738) 评论(0) 推荐(0) 编辑
摘要: Unlike Windows Forms, there is no Visual Inheritance in WPF. Luckily you don’t need visual inheritance as you can use User Controls to get a re-usable UI. There are times, however, when you want a base Window class so you can have common functionality in all your WPF windows. To accomplish this you 阅读全文
posted @ 2011-09-19 13:42 Angelo Lee 阅读(290) 评论(0) 推荐(0) 编辑
摘要: a. 单元格的宽度可以设置三类值绝对值:double数值加单位后缀比例值:double数值加一个星号*自动值: auto,高度将有内部的控件的高度和宽度决定。b. Grid可接受的宽度和高度的单位1in=96px1cm=(96/2.54)px1pt=(96/72) px 阅读全文
posted @ 2011-09-19 13:22 Angelo Lee 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Add Project Reference vs Add DLL ReferenceFirst one is - Right click on project << Add Reference << Select Project in Project tabSecond one is - Right click on project << Add Reference << Select DLL in Browse tabThe correct way to do it is to add a project reference.one of th 阅读全文
posted @ 2011-09-14 10:10 Angelo Lee 阅读(214) 评论(0) 推荐(0) 编辑
摘要: PowerGUI:免费的PowerShell编辑器==========================下载地址:http://www.powergui.org/index.jspaPowerGUI Visual Studio Extension:集成到Visual Studio中的插件==============================================下载地址:http://powerguivsx.codeplex.com/ 阅读全文
posted @ 2011-09-06 14:37 Angelo Lee 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Link:http://www.codeproject.com/KB/powershell/PowerShell.aspx?display=MobileWhat is Windows PowerShell?Windows PowerShell (a.k.a. Monad) is a new CLI (Command Line Interface) provided by Microsoft. PowerShell is based on .NET Framework 2.0, and passes data as .NET objects.What are we going to do?In 阅读全文
posted @ 2011-09-06 13:09 Angelo Lee 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 如果想自定义一个类似于PowerShell的Get-Process的cmdlet,例如Get-Proc,如何自己编写这样一个cmdlet呢?查阅msdn,其基本步骤是:1.确定cmdlet的名字:通常cmdlet都采取verb-noun的方式,确定自定义的cmdlet属于哪个cmdlet verb,并确定一个具体的名词。本例中,Get-Proc属于Verbs.Common.Get,名词则是"Proc";2. 确定cmdlet的类名,通常,以verbnoun+"command"后缀作为类名。本例中,GetProcCommand;3. 实现类:通常,自定义的 阅读全文
posted @ 2011-09-06 12:55 Angelo Lee 阅读(443) 评论(0) 推荐(0) 编辑
摘要: The C# error handling knowledge pack contains preconfigured rules based on the .NETError Raising and Handling Guidelines found in Microsoft's C# Design Guidelines for Class Library Developers, .NET Best Practices for Handling Exceptions found in the .NET Framework developers guide as well as oth 阅读全文
posted @ 2011-09-05 22:41 Angelo Lee 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Today, I installed a software which I activated on a different PC before but it gave an error of MAC address check failure. It was actually checking MAC address from license. Right after that, I started online search for a utility to change MAC address in windows 7. In XP, there were free utilities 阅读全文
posted @ 2011-09-04 19:51 Angelo Lee 阅读(1391) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 55 下一页