摘要: 一直用在项目里操作XML的类 NewXmlControl.csusing System;using System.Xml;using System.Configuration;using System.Data;using System.Collections;using System.IO;namespace YZControl{ public class NewXmlControl : Object { protected string strXmlFile; protected XmlDocument objXmlDoc = new XmlDocu... 阅读全文
posted @ 2011-09-15 16:21 灵雨飘零 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 代码如下: [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(int Description, int ReservedValue); public static bool IsConnectedToInternet() { int Desc = 0; return InternetGetConnectedState(Desc, 0); } private voi... 阅读全文
posted @ 2011-09-15 09:29 灵雨飘零 阅读(463) 评论(0) 推荐(0) 编辑