示例#1
0
        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;
        }
示例#2
0
文件: Form1.cs 项目: zqh2945/Krypton
        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);
        }