using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace Kinect_viewer
{
    public class Panel2:Panel
    {
        /// <summary>
        /// Create new object for painting images.
        /// </summary>
        public Panel2():base()
        {
            this.Location = new Point(0, 0);
            this.Width = 640;
            this.Height = 480;
        }
        /// <summary>
        /// Create new object for painting images. 
        /// </summary>
        /// <param name="panel">Panel for setting main data to this control</param>
        /// <param name="form">Parent´s control.</param>
        public Panel2(Panel panel, Control form)
            : base()
        {
            this.Location = panel.Location;
            this.Width = panel.Width;
            this.Height = panel.Height;
            this.Parent = form;
            
        }
        /// <summary>
        /// Disable panel redrawing
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPaintBackground(PaintEventArgs e)
        {
        }
    }
}
