摘要: ///<summary>///递归选中所有的自节点///</summary>///<paramname="nodeThis">TreeNode</param>privatevoidcheckAllChildNode(TreeNodenodeThis){foreach(TreeNodechildNodeinnodeThis.Nodes){childNode.Checked=nodeThis.Checked;if(childNode.Nodes!=null){checkAllChildNode(childNode);}}}///& 阅读全文
posted @ 2012-04-23 14:05 Xingsoft 阅读(2971) 评论(0) 推荐(0) 编辑
摘要: //将image转化为二进制 public static byte[] GetByteImage(Image img) { byte[] bt=null; if(!img.Equals(null)) { using (MemoryStream mostream = new MemoryStream()) { Bitmap bmp = new Bitmap(img); bmp.Save(mostream, System.Drawing.Imaging.ImageFormat.Jpeg);//将图像以指定的格式存入缓存内存流 bt = new byte[mostream.Length]; mo.. 阅读全文
posted @ 2012-04-23 11:05 Xingsoft 阅读(17516) 评论(1) 推荐(1) 编辑