Exemple #1
0
        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
        }
Exemple #2
0
        protected virtual void FmB_Load(object sender, EventArgs e)
        {
            #region 窗体加载

            InitGridColumn();

            var treeData = dalC.GetList();

            TreeHelper.LoadAdvTree(TreeM, treeData, NodeClick);

            #endregion
        }
Exemple #3
0
        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
        }