privite void InitImageList()
{
if (imageList.Images.Count == 0)
{
imageList = new ImageList();
imageList.ImageSize = new Size(16, 16);
imageList.ColorDepth = ColorDepth.Depth32Bit;
imageList.Images.Add(Resources.yaoshi);
//imageList.Images.Add(Resources.look);
}
}
//调用方法
TreeView1.ImageList = this.imageList;
TreeView2.ImageList = this.imageList;