Example #1
0
 /// <summary>
 /// 增加MatchItem
 /// </summary>
 public void AddMatchItem()
 {
     _conditionCount++;
     ctlMatchItem newMatchItem = new ctlMatchItem();
     newMatchItem.Location = _conditionPos;
     newMatchItem.Name = "MatchItem" + _conditionCount.ToString();
     Controls.Add(newMatchItem);
     _conditionPos.Y += newMatchItem.Height;
 }
Example #2
0
        /// <summary>
        ///     增加MatchItem
        /// </summary>
        public void AddMatchItem()
        {
            _conditionCount++;
            var newMatchItem = new ctlMatchItem();

            newMatchItem.Location = _conditionPos;
            newMatchItem.Name     = "MatchItem" + _conditionCount;
            Controls.Add(newMatchItem);
            _conditionPos.Y += newMatchItem.Height;
        }