摘要: http://www.cnblogs.com/wangsaiming/archive/2013/01/11/2856253.htmlC#使用Log4Net记录日志第一步:下载Log4Net下载地址:http://logging.apache.org/log4net/download_log4net.... 阅读全文
posted @ 2014-12-19 15:21 popoxxll 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 一、创建window服务1、新建项目-->选择Windows服务。默认生成文件包括Program.cs,Service1.cs2、在Service1.cs添加如下代码: System.Timers.Timer timer1; //计时器 public Service1() { I... 阅读全文
posted @ 2014-12-18 17:38 popoxxll 阅读(17508) 评论(2) 推荐(1) 编辑
摘要: MySQL实现类似Oracle的序列2013-10-22 10:33:35 我来说两句 作者:走过的足迹收藏 我要投稿 MySQL实现类似Oracle的序列Oracle一般使用序列(Sequence)来处理主键字段,而MySQL则提供了自增长(increment)来实现类似的目的;但在实际使用过... 阅读全文
posted @ 2014-11-27 15:42 popoxxll 阅读(6636) 评论(3) 推荐(1) 编辑
摘要: 树的2个事件代码如下,通过节点的tag判断是否禁用节点前的复选框.树的节点加载时设置要禁用的节点tag为-1,不禁用的则设为相关的值private void treeListPer_CustomDrawNodeCheckBox(object sender, DevExpress.XtraTreeLi... 阅读全文
posted @ 2014-11-22 22:41 popoxxll 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: 概述:如何让DevExpress TreeList的每个节点高亮显示?如何让DXperience TreeList的每个节点高亮显示?效果如下:private void treeList1_CustomDrawNodeCell(object sender, DevExpress.XtraTreeL... 阅读全文
posted @ 2014-11-20 03:35 popoxxll 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 将时间转换成数字,把数字转换成时间,均匀取一定时间间隔(比如每91秒取一条记录)内的符合条件的记录/****** Script for SelectTopNRows command from SSMS ******/SELECT [id] ,[tagDate],CAST(tagdate as flo... 阅读全文
posted @ 2014-11-15 16:03 popoxxll 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: struct PinCamParIn//用户输入的针孔相机参数结构体{ char CameraName[512]; float Offset[3]; float Angle[3]; float FocalLen; float PixsSize; int Resolution[2];}struct P... 阅读全文
posted @ 2014-11-15 14:07 popoxxll 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: 牛是怎么死的?看懂了思想至少成熟30年!“牛”是怎么死的?这个故事很经典,寓意很深!牛耕田回来,躺在栏里,疲惫不堪地喘着粗气,狗跑过来看它。“唉,老朋友,我实在太累了。”牛诉着苦,“明儿个我真想歇一天。”狗告别后,在墙角遇到了猫。狗说:“伙计,我刚才去看了牛,这位大哥实在太累了,它说它想歇一天。也难... 阅读全文
posted @ 2014-11-13 15:19 popoxxll 阅读(1777) 评论(5) 推荐(5) 编辑
摘要: 树形控件是使用频率很高的一种控件。对于属性控件往往需要下面两个功能1.TreeList带有CheckBox,并且节点要有三种状态(所有的子节点都选中,所有的子节点都没选择,一部分子节点选中)。使用 DevXpress的TreeList控件很容易实现这一功能。设置TreeList.OptionsVie... 阅读全文
posted @ 2014-11-12 13:52 popoxxll 阅读(4901) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window... 阅读全文
posted @ 2014-10-06 15:15 popoxxll 阅读(907) 评论(0) 推荐(0) 编辑