ADLTest.PictureWithLabel.PictureWithLabel C# (CSharp) Method

PictureWithLabel() public method

public PictureWithLabel ( ScreenCaptureSource src ) : System
src ADL.ScreenCaptureSource
return System
        public PictureWithLabel(ScreenCaptureSource src)
        {
            this.Width = 160;
            this.Height = 140;
            label.Text = src.title;
            pictureBox.Image = src.snapshot;
            pictureBox.SetBounds(0, 0, 160, 120);
            label.SetBounds(0, 120, 160, 20);
            Controls.Add(label);
            Controls.Add(pictureBox);
        }
PictureWithLabel