摘要: /// /// Build the protocol to xml string /// /// xml string public override string PackMessage() { StringBuilder xmlSB = new StringBuilder... 阅读全文
posted @ 2009-03-23 15:30 rudyfung 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public class Request { /// /// 璇诲啓m_SessionID /// public String SessionID { get { return m_SessionID; ... 阅读全文
posted @ 2009-03-23 15:17 rudyfung 阅读(198) 评论(0) 推荐(0) 编辑
摘要: [Serializable] public abstract class PacketBase { protected PacketHead packetHead; protected PacketPayload packetPayload; public PacketBase(PacketHead packetHead, Packe... 阅读全文
posted @ 2009-03-23 15:01 rudyfung 阅读(223) 评论(0) 推荐(0) 编辑
摘要: public class PacketHead { private byte[] rawData; public const int HeadLength = 20; public const int MaxPayloadLength = 0xa00000; public PacketHead() { ... 阅读全文
posted @ 2009-03-23 14:59 rudyfung 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 如果要用彩色Cursor的话,需要把你的Cursor保存成一个BMP图片,然后调API来做 C# codepublic partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object s... 阅读全文
posted @ 2009-03-23 14:44 rudyfung 阅读(222) 评论(0) 推荐(0) 编辑
摘要: /// /// 管理配置文件的对象管理 /// public class ConfigurationManager { #region Properties static Configurations configInstance; static Configurations errorMessageIns... 阅读全文
posted @ 2009-03-23 14:39 rudyfung 阅读(276) 评论(0) 推荐(0) 编辑
摘要: public class DataSetFormat { /// /// 序列化DataSet /// /// 需要序列化的DataSet /// 序列化后的byte数组 public static byte[] DataSetToByte(DataSet dataSet) ... 阅读全文
posted @ 2009-03-23 13:12 rudyfung 阅读(260) 评论(0) 推荐(0) 编辑