private void listBoxRom_SelectedIndexChanged(object sender, EventArgs e) { PanelArguments.Controls.Clear(); int i = 0; Rom currentRom = launcherController.GetRom((listBoxRom.SelectedItem as DisplayMember).Id); currentRom.Arguments.GetArguments().ToList().ForEach(a => { CheckBox box = new CheckBox(); box.Tag = a.Value; box.Text = a.DisplayText; box.Checked = a.Check; box.Visible = a.Visible; box.Location = new Point(0, i); if (!string.IsNullOrEmpty(a.Description)) { new ToolTip().SetToolTip(box, a.Description); } i += 19; PanelArguments.Controls.Add(box); }); }