Inheritance: System.Windows.Forms.UserControl
Example #1
0
        /// <summary>
        ///     加载控件
        /// </summary>
        private void SetFieldList()
        {
            var conditionPos = new Point(20, 30);

            //清除所有的控件
            Controls.Clear();
            Controls.Add(btnSelectAll);
            Controls.Add(btnUnSelectAll);
            Controls.Add(lblSortOrder);
            foreach (var queryFieldItem in _mQueryFieldList.OrderBy(info => info.ColName))
            {
                //动态加载控件
                var ctrItem = new CtlFieldInfo
                {
                    Mode           = FieldListMode,
                    Name           = queryFieldItem.ColName,
                    Location       = conditionPos,
                    IsIdProtect    = IsIdProtect,
                    QueryFieldItem = queryFieldItem,
                    Width          = 450
                };
                Controls.Add(ctrItem);
                //纵向位置的累加
                conditionPos.Y += ctrItem.Height;
            }
        }
Example #2
0
        /// <summary>
        ///     加载控件
        /// </summary>
        private void SetFieldList()
        {
            var conditionPos = new Point(20, 30);

            //清除所有的控件
            Controls.Clear();
            Controls.Add(btnSelectAll);
            Controls.Add(btnUnSelectAll);

            foreach (var queryFieldItem in _mQueryFieldList)
            {
                //动态加载控件
                var ctrItem = new CtlFieldInfo();
                ctrItem.Mode           = FieldListMode;
                ctrItem.Name           = queryFieldItem.ColName;
                ctrItem.Location       = conditionPos;
                ctrItem.IsIdProtect    = IsIdProtect;
                ctrItem.QueryFieldItem = queryFieldItem;
                Controls.Add(ctrItem);
                //纵向位置的累加
                conditionPos.Y += ctrItem.Height;
            }
        }
Example #3
0
        /// <summary>
        ///     加载控件
        /// </summary>
        private void SetFieldList()
        {
            var conditionPos = new Point(20, 30);
            //清除所有的控件
            Controls.Clear();
            Controls.Add(btnSelectAll);
            Controls.Add(btnUnSelectAll);

            foreach (var queryFieldItem in _mQueryFieldList)
            {
                //动态加载控件
                var ctrItem = new CtlFieldInfo();
                ctrItem.Mode = FieldListMode;
                ctrItem.Name = queryFieldItem.ColName;
                ctrItem.Location = conditionPos;
                ctrItem.IsIdProtect = IsIdProtect;
                ctrItem.QueryFieldItem = queryFieldItem;
                Controls.Add(ctrItem);
                //纵向位置的累加
                conditionPos.Y += ctrItem.Height;
            }
        }
Example #4
0
 /// <summary>
 ///     加载控件
 /// </summary>
 private void SetFieldList()
 {
     var conditionPos = new Point(20, 30);
     //清除所有的控件
     Controls.Clear();
     Controls.Add(btnSelectAll);
     Controls.Add(btnUnSelectAll);
     Controls.Add(lblSortOrder);
     foreach (var queryFieldItem in _mQueryFieldList.OrderBy(info => info.ColName))
     {
         //动态加载控件
         var ctrItem = new CtlFieldInfo
         {
             Mode = FieldListMode,
             Name = queryFieldItem.ColName,
             Location = conditionPos,
             IsIdProtect = IsIdProtect,
             QueryFieldItem = queryFieldItem,
             Width = 450
         };
         Controls.Add(ctrItem);
         //纵向位置的累加
         conditionPos.Y += ctrItem.Height;
     }
 }