/// <summary> /// Add all controls to separate collecton for use in other methods and easier addition to the Form's Controls list /// </summary> private void IntitializeArrays() { MyButtons.AddRange(new Button[] { buttonAdd, buttonDeleteAll }); MyTextBoxes.AddRange(new TextBox[] { textBoxInput }); }
/// <summary> /// Adds all controls to their corresponding collection /// </summary> private void IntitializeArrays() { MyButtons.Add(buttonLogin); MyLabels.AddRange(new Label[] { labelName, labelSurname, labelBirthdate, labelGender, labelCity, labelFormat, labelError }); MyTextBoxes.AddRange(new TextBox[] { textBoxName, textBoxSurname, textBoxBirthdate, textBoxGender, textBoxCity }); }