private void FmB_Load(object sender, System.EventArgs e) { #region 窗体加载, 加载TreeNode var treeData = dal.GetList(); TreeHelper.LoadAdvTree(this.TreeM, treeData, NodeClick); this.lblRowCount.Text = "分类记录:" + treeData.Count.ToString(); UIStatus(opState); #endregion }
protected virtual void FmB_Load(object sender, EventArgs e) { #region 窗体加载 InitGridColumn(); var treeData = dalC.GetList(); TreeHelper.LoadAdvTree(TreeM, treeData, NodeClick); #endregion }
protected virtual void FmB_Load(object sender, EventArgs e) { #region 窗体加载 InitGridColumn(); var treeData = dalC.GetList(); TreeHelper.LoadAdvTree(TreeM, treeData, NodeClick); // 设置行高 ImageList imgList = new ImageList(); // 分别是宽和高 imgList.ImageSize = new Size(1, 20); // 这里设置listView的SmallImageList ,用imgList将其撑大 listView1.SmallImageList = imgList; listView2.SmallImageList = imgList; #endregion }