Esempio n. 1
0
        private void initialize()
        {
            // title
            this.titleBar.Text = this.media.getTitle();

            // description
            this.y    += MARGIN;
            this.descr = new TextBox();
            this.descr.AcceptsReturn = true;
            this.descr.AcceptsTab    = true;
            this.descr.Multiline     = true;
            this.descr.ReadOnly      = true;
            this.descr.ScrollBars    = ScrollBars.Vertical;
            this.descr.Location      = new Point(MARGIN, y);
            this.descr.Width         = this.Width - 2 * MARGIN;
            this.descr.Height        = 2 * this.titleBar.Height;
            this.descr.Text          = this.media.getDescr();
            this.content.Controls.Add(this.descr);

            // picture
            this.imgPanel          = new AutoScrollPicturePanel();
            this.y                += this.descr.Height + MARGIN;
            this.imgPanel.Location = new Point(MARGIN, y);
            this.imgPanel.Width    = this.Width - 2 * MARGIN;
            this.imgPanel.Height   = this.content.Height - y - MARGIN;
            this.content.Controls.Add(this.imgPanel);

            this.imgPanel.PictureBox.Click += new EventHandler(fullScreen);
        }
Esempio n. 2
0
        private void initialize()
        {
            // title
            this.titleBar.Text = this.media.getTitle();

            // description
            this.y += MARGIN;
            this.descr = new TextBox();
            this.descr.AcceptsReturn = true;
            this.descr.AcceptsTab = true;
            this.descr.Multiline = true;
            this.descr.ReadOnly = true;
            this.descr.ScrollBars = ScrollBars.Vertical;
            this.descr.Location = new Point(MARGIN, y);
            this.descr.Width = this.Width - 2 * MARGIN;
            this.descr.Height = 2 * this.titleBar.Height;
            this.descr.Text = this.media.getDescr();
            this.content.Controls.Add(this.descr);

            // picture
            this.imgPanel = new AutoScrollPicturePanel();
            this.y += this.descr.Height + MARGIN;
            this.imgPanel.Location = new Point(MARGIN, y);
            this.imgPanel.Width = this.Width - 2 * MARGIN;
            this.imgPanel.Height = this.content.Height - y - MARGIN;
            this.content.Controls.Add(this.imgPanel);

            this.imgPanel.PictureBox.Click += new EventHandler(fullScreen);
        }