private void button1_Click(object sender, EventArgs e) { Row r = new Row(flowLayoutPanel); RowData rData = new RowData(); rData.name = textBox1.Text; rData.phone = textBox2.Text; r.setData1(rData); flowLayoutPanel.Controls.Add(r); }
public void AddFlow(Row r) { flowLayoutPanel1.Controls.Add(r); }