Button CreateButton(string textID, int row, int index) { Button btn = ControlCreator.CreateButton("Add", DockStyle.Right); btn.Click += btn_Click; panel.Controls.Add(btn, 0, row); maxRow = row; return(btn); }
public override void Create() { base.Create(); btnRemove = ControlCreator.CreateButton("Remove", DockStyle.Left); btnRemove.Click += btnRemove_Click; maxRow++; table.Controls.Add(btnRemove, 1, maxRow); EndCreate(); }