/// <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; }
/// <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; }