private int previousVideoIndex = 0; //��һ����Ƶ����

        #endregion Fields

        #region Constructors

        public ViedoScreen()
        {
            InitializeComponent();

            //��˫����
            SetStyle(ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);

            BackColor = Color.SlateGray;

            //�˿ؼ���С�ߴ�Ϊ100��75
            MinimumSize = new Size(100, 75);

            for (int i=0; i <MaxChannel; i++ )
            {
                CH[i] = new VideoPanel();
                CH[i].ViedoActivedEvent+=new EventHandler<EventArgs>(ViedoScreen_ViedoActivedEvent);
                CH[i].ViedoExpansionEvent +=new EventHandler<ViedoExpansionEventArgs>(ViedoScreen_ViedoExpansionEvent);
                CH[i].DVRCruiseEvnet += new EventHandler<CruiseEventArgs>(ViedoScreen_DVRCruiseEvnet);
                CH[i].PreSetCruiseEvent += new EventHandler<CruiseEventArgs>(ViedoScreen_PreSetCruiseEvent);
                CH[i].ViedoClose +=new EventHandler<EventArgs>(ViedoScreen_ViedoClose);
                CH[i].MenuItem_StartRecord += new EventHandler<EventArgs>(ViedoScreen_MenuItem_StartRecord);
                CH[i].MenuItem_StopRecord += new EventHandler<EventArgs>(ViedoScreen_MenuItem_StopRecord);

                CH[i].DragEnter += new DragEventHandler(ViedoScreen_DragEnter);
                CH[i].DragDrop += new DragEventHandler(ViedoScreen_DragDrop);
                CH[i].ViedoPanelDoDragDrop += new EventHandler<MouseEventArgs>(ViedoScreen_ViedoPanelDoDragDrop); CH[i].AllowDrop = true;

                this.Controls.Add(CH[i]);
            }
        }
 private bool StopRealPlay(VideoPanel panel)
 {
     return true;
 }