摘要:
///<summary>///递归选中所有的自节点///</summary>///<paramname="nodeThis">TreeNode</param>privatevoidcheckAllChildNode(TreeNodenodeThis){foreach(TreeNodechildNodeinnodeThis.Nodes){childNode.Checked=nodeThis.Checked;if(childNode.Nodes!=null){checkAllChildNode(childNode);}}}///& 阅读全文
摘要:
//将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.. 阅读全文