悟生慧

 

2012年4月26日

WinFrom程序如何从数据库循环读取图片并合成

摘要: 数据库中有表backgroundimage(背景图片表),backgroundpoint(图片坐标表),systemheadimage(头像表),分别存放的背景,坐标及头像,我现在要对应遍历出三表相关信息并合成一张图片,合成方法我已经做好,如下代码:C# code原文转自:http://club.itqun.net/showtopic-257319.htmlusing System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.Drawing.Drawing2D;name 阅读全文

posted @ 2012-04-26 18:14 悟生慧 阅读(704) 评论(1) 推荐(0)

winfrom中简单引用WebService

摘要: 新建工程中有两个项目一个是Web服务应用程序 如TestWebService 另一个是WinForm应用程序 如TestFormusing System;using System.Collections;using System.ComponentModel;using System.Data;using System.Linq;using System.Web;using System.Web.Services;using System.Web.Services.Protocols;using System.Xml.Linq;namespace TestWebService{ /// ... 阅读全文

posted @ 2012-04-26 17:44 悟生慧 阅读(1151) 评论(0) 推荐(0)

C#读取数据库返回泛型集合 把DataSet类型转换为List<T>泛型集合

摘要: /// <summary> /// 获取UserInfo泛型集合 /// </summary> /// <param name="connStr">数据库连接字符串</param> /// <param name="sqlStr">要查询的T-SQL</param> /// <returns></returns> public IList<UserInfo> GetUserInfoAll(string connStr, string sqlStr) 阅读全文

posted @ 2012-04-26 17:18 悟生慧 阅读(13300) 评论(0) 推荐(1)

C#生成string类型的唯一ID

摘要: using System;using System.Diagnostics;using System.Security.Cryptography;using System.Text;using System.Threading;namespace 命名空间{ /// <summary> /// Represents an ObjectId (see also BsonObjectId). /// </summary> [Serializable] public struct ObjectId : IComparable<ObjectId>, IEquatab 阅读全文

posted @ 2012-04-26 11:16 悟生慧 阅读(5263) 评论(0) 推荐(1)

导航