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