Inheritance: System.Windows.Forms.UserControl
Exemple #1
0
        /// <summary>
        /// 增加排序
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            SortItemCount++;
            var newSortItem = new ctlSortItem();

            newSortItem.Location = CurrentPos;
            newSortItem.Name     = "SortItem" + SortItemCount;
            Controls.Add(newSortItem);
            CurrentPos.Y += newSortItem.Height;
        }
Exemple #2
0
 /// <summary>
 /// 增加排序
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdAdd_Click(object sender, EventArgs e)
 {
     SortItemCount++;
     var newSortItem = new ctlSortItem();
     newSortItem.Location = CurrentPos;
     newSortItem.Name = "SortItem" + SortItemCount;
     Controls.Add(newSortItem);
     CurrentPos.Y += newSortItem.Height;
 }