Exemplo n.º 1
0
 /// <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 });
 }
Exemplo n.º 2
0
 /// <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 });
 }