public void InitMega(int count) { Megas = new MegaEvoEntry[count]; MegaEvoEntry.items = items; for (int i = 0; i < count; i++) { var row = new MegaEvoEntry(); flowLayoutPanel1.Controls.Add(row); Megas[i] = row; } }
public MegaEvoEntry[] InitMega(int count) { var result = new MegaEvoEntry[count]; MegaEvoEntry.items = items; for (int i = 0; i < count; i++) { var row = new MegaEvoEntry(); flowLayoutPanel1.Controls.Add(row); result[i] = row; } return(result); }