private void AddAddParameterPickBox(AddParameterPickBox yourAddParameterPickBox) { if (addParameterPickBoxList.Contains(yourAddParameterPickBox)) { return; } int nowParameterPickBoxCount = addParameterPickBoxList.Count; yourAddParameterPickBox.Location = new Point(startLocation.X, startLocation.Y + nowParameterPickBoxCount * parameterPickBoxHeight); this.Controls.Add(yourAddParameterPickBox); yourAddParameterPickBox.GetFocus(); this.Height += parameterPickBoxHeight; addParameterPickBoxList.Add(yourAddParameterPickBox); }
private void AddParameterPickBox(ParameterPick yourParameterPick) { AddParameterPickBox tempAddParameterPickBox; if (yourParameterPick == null) { tempAddParameterPickBox = new AddParameterPickBox(); } else { tempAddParameterPickBox = new AddParameterPickBox(yourParameterPick); tempAddParameterPickBox.Tag = yourParameterPick; } tempAddParameterPickBox.OnAddParameterClick += AddParameterPickBox_OnAddParameterClick; AddAddParameterPickBox(tempAddParameterPickBox); }