07 2012 档案

摘要:#region 图片旋转函数 /// <summary>--以顺时针为方向对图像进行旋转-- /// Guo Jin /// </summary> /// <param name="b">位图流</param> /// <param name="angle">旋转角度[0,360](前台给的)</param> /// <returns></returns> private... 阅读全文
posted @ 2012-07-26 13:34 Hsppl 阅读(370) 评论(0) 推荐(0)
摘要:首先在窗体类里面声明两个变量,来监视鼠标的动作 //鼠标按下标识 bool mouseDown = false; Point mouseOffset;在Load事件里加载所有的图片 if (File.Exists(GlobalInfo.AppPath + "\\Picture\\login.png")) this.BackgroundImage = new Bitmap... 阅读全文
posted @ 2012-07-20 13:26 Hsppl 阅读(556) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Data.SqlClient; using System.Data; namespace CN.COM.YYT.DBHelper { public cl... 阅读全文
posted @ 2012-07-20 10:03 Hsppl 阅读(692) 评论(0) 推荐(0)
摘要:LookUpEdit控件如果已经绑定数据源,要想更改控件的值,要用EditValue属性,不要直接改Text,要不控件会闪一下,看着很难受……比如这样…… 阅读全文
posted @ 2012-07-19 17:35 Hsppl 阅读(757) 评论(0) 推荐(0)
摘要:string localPriname, localcityname, localregname, localtownname; string localPricode, localcitycode, localregcode, localtowncode; private void ControlLocalSelect(string proCode, string cityCod... 阅读全文
posted @ 2012-07-19 14:15 Hsppl 阅读(225) 评论(0) 推荐(0)
摘要:private void ucPage1_onPageDown(){ if (curPage >= ucPage1.PageCount) { XtraMessageBox.Show("当前已经是最后一页了!", "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { ... 阅读全文
posted @ 2012-07-18 17:49 Hsppl 阅读(205) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Text; using Microsoft.Win32; namespace SafetyPCClient.Function { public class RegisterOperate { /// <summary... 阅读全文
posted @ 2012-07-18 17:38 Hsppl 阅读(227) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Text;using System.Windows.Forms;using DevExpress.XtraEditors;namespac... 阅读全文
posted @ 2012-07-18 16:56 Hsppl 阅读(457) 评论(0) 推荐(0)
摘要:public class BaseBLL { /// <summary> /// 把DataTable转换成泛型实体List /// </summary> /// <typeparam name="T">泛型实体</typeparam> /// <param name="dt">DataTable数据</param> ... 阅读全文
posted @ 2012-07-18 16:37 Hsppl 阅读(362) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Runtime.InteropServices;using System.Data.OleDb;using System.IO;using System.Windows.Forms;using Syste... 阅读全文
posted @ 2012-07-18 16:33 Hsppl 阅读(687) 评论(0) 推荐(0)
摘要:public DataTable GetAccInfoList(string typeId, int beginIndex, int pageSize, out int recordCount){ DataTable dt = null; recordCount = 0; try { StringBuilder sb = new StringBuilde... 阅读全文
posted @ 2012-07-18 16:31 Hsppl 阅读(619) 评论(0) 推荐(0)
摘要:private void simpleButton1_Click(object sender, EventArgs e){ string dbpath = Application.StartupPath @"\db"; string backuppath=Application.StartupPath @"\backup"; zipdbfile(dbpath, back... 阅读全文
posted @ 2012-07-18 16:29 Hsppl 阅读(348) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Collections;using System.IO;using System.Reflection;namespace FrmUpdate{ public class XmlHelper { /// <summary>--检查XML文件是否存在,不存在则先创建-- /// Guo Jin /// </summary> /// <param... 阅读全文
posted @ 2012-07-18 16:25 Hsppl 阅读(248) 评论(0) 推荐(0)
摘要:radioGroup3.Properties.Items.AddRange( new DevExpress.XtraEditors.Controls.RadioGroupItem[] { new DevExpress.XtraEditors.Controls.RadioGroupItem("","合格"), new DevExpress.XtraEditors.Controls.RadioGroupItem("","一般隐患"), new DevExpress.XtraEditors.Controls.RadioG 阅读全文
posted @ 2012-07-18 16:21 Hsppl 阅读(484) 评论(0) 推荐(0)
摘要:先要在代码的最前面声明一下事件、委托 delegate TreeListNode SetTreeNodeHandler(object data, TreeListNode node);event SetTreeNodeHandler AddTreeNode;在窗体类的构造函数中绑定事件 public UserCheckItem(){ InitializeComponent(); ... 阅读全文
posted @ 2012-07-18 16:12 Hsppl 阅读(537) 评论(0) 推荐(0)
摘要:private void ChartZhu() { try { string beginTime, endTime, townCode; int count = 0, degree = -1, state = 0; bool isDegree =... 阅读全文
posted @ 2012-07-18 16:04 Hsppl 阅读(635) 评论(0) 推荐(0)