Esempio n. 1
0
        public void Render(DisplayWindow window)
        {
            targetWindow = window;

            pictureBox          = new PictureBox();
            pictureBox.Location = new Point(x, y);
            pictureBox.Width    = width;
            pictureBox.Height   = height;
            pictureBox.Image    = image;
            pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;

            targetWindow.AddControl(pictureBox);
        }
Esempio n. 2
0
        public void Render(DisplayWindow window)
        {
            targetWindow = window;

            textLabel           = new Label();
            textLabel.Location  = new Point(x, y);
            textLabel.Width     = width;
            textLabel.Height    = height;
            textLabel.Text      = text;
            textLabel.Font      = new Font("Ariel", 10);
            textLabel.ForeColor = color;

            if (autoResize)
            {
                SizeLabelFont(textLabel);
            }

            targetWindow.AddControl(textLabel);
        }