随笔分类 -  C#

摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2011-09-20 13:50 xgdw 阅读(402) 评论(0) 推荐(0)
摘要:private void SelectNextCameraMode(){ World.Camera.CameraMode = (CameraActionMode)GetNextEnum<cameraactionmode>(World.Camera.CameraMode); UpdateCameraModeLabel();} private void SelectNextMouseMode(){ this.mouseMode = (MouseMode)GetNextEnum<mousemode>(this.mouseMode); UpdateMouseModeL... 阅读全文
posted @ 2011-08-30 09:25 xgdw 阅读(1047) 评论(0) 推荐(0)
摘要:转的,参考http://www.cnblogs.com/goody9807/archive/2008/03/04/1090613.html/* - - - - - - - - - - - - - - - - - - - - - - - - * Stream 和 byte[] 之间的转换 * - - - - - - - - - - - - - - - - - - - - - - - *//// <summary>/// 将 Stream 转成 byte[]/// </summary>public byte[] StreamToBytes(Stream stream){ b 阅读全文
posted @ 2011-06-09 11:39 xgdw 阅读(188) 评论(0) 推荐(0)