상속: System.Windows.Forms.UserControl
예제 #1
0
파일: Form1.cs 프로젝트: Cocotteseb/Krypton
        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;
        }
예제 #2
0
파일: Form1.cs 프로젝트: zqh2945/Krypton
        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);
        }