private void bPerPages_Click(object sender, EventArgs e) { using (PPForm form = new PPForm()) { foreach (Pane p in flpPages.Controls) { if (!p.DeleteMe) { form.AddPane(p); } } if (form.ShowDialog(this) == DialogResult.OK) { int x = 1; foreach (Pane pane in form.panes) { pane.SplitFirst = (form.splits.Contains(x - 1)); x++; } } } }
private void bPerPages_Click(object sender, EventArgs e) { using (PPForm form = new PPForm()) { foreach (Pane p in flpPages.Controls) if (!p.DeleteMe) form.AddPane(p); if (form.ShowDialog(this) == DialogResult.OK) { int x = 1; foreach (Pane pane in form.panes) { pane.SplitFirst = (form.splits.Contains(x - 1)); x++; } } } }