转自
http://blog.sina.com.cn/s/blog_61c463090100ljqa.html
Contains返回偶数在内,否则在外。
public bool Contains(PointF point, PointF[] cornerPoints)
{
int intersections = 0;
float x0 = point.X;
float y0 = point.Y;
for (int i = 1; i < cornerPoints.Length; ++i)
{
if (DoesIntersect(point, cornerPoints[i],
cornerPoints[i - 1]))
++intersections;
}
if (DoesIntersect(point,
cornerPoints[cornerPoints.Length - 1],
cornerPoints[0]))
++intersections;
return (intersections % 2 != 0);
微软的Windows Server Update Services (WSUS) 3.0
和Windows Sharepoint Services (WSS) 3.0使用了Windows Internal
Database,还微软的MSDE桌面数据库,很多人不知道如何来控制它,比如对其进行备份、转移、实施CRUD操作,将方法介绍如下:
1、先安装 SQL Server Management Studio
Express.(http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&displaylang=zh-cn),运行SQL
Server Management Studio Express。
2、操作Windows Internal
Database
数据库实例中选取或者输入
\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
采用集成认证方式;
即可浏览数据库了。
&nbs
在窗体中加入一个TreeView、RichTextBox、TextBox,布局随便调整吧,双击TreeView加入AfterSelect事件。
用如下代码相应替代,一个简单的资源管理器就有了。
using System;
using System.