private KryptonPage NewFlags() { // Create new page with title and image KryptonPage p = new KryptonPage(); p.Text = "Flags " + _count.ToString(); p.TextTitle = p.Text; p.TextDescription = p.Text; p.UniqueName = p.Text; p.ImageSmall = imageListSmall.Images[1]; // Add the control for display inside the page ContentFlags contentFlags = new ContentFlags(p); contentFlags.Dock = DockStyle.Fill; p.Controls.Add(contentFlags); _count++; return p; }
private KryptonPage NewFlags() { // Create new page with title and image KryptonPage p = new KryptonPage(); p.Text = "Flags " + _count.ToString(); p.TextTitle = p.Text; p.TextDescription = p.Text; p.UniqueName = p.Text; p.ImageSmall = imageListSmall.Images[1]; // Add the control for display inside the page ContentFlags contentFlags = new ContentFlags(p); contentFlags.Dock = DockStyle.Fill; p.Controls.Add(contentFlags); _count++; return(p); }