/// <summary>
        /// 鼠标移动事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void StandarAndSimpleLayout_GridMouseMove(object sender, RectangularGridMouseEventArgs e)
        {
            if (_customToolTip == null)
            {
                _customToolTip                = new CustomToolTip();
                _customToolTip.Owner          = this.ParentForm;
                _customToolTip.TipContentFont = _customToolTipFont;
            }
            if (e.GridInfo == null)
            {
                //当前鼠标移动到的区域无矩形格子
                _customToolTip.SetTipInfo(_standarAndSimpleLayout.DrawPanel, null);
                Debug.WriteLine("进入格子的GridMouseMove事件,并获取的格子信息为空");
                return;
            }

            RectangularGridInfo scanBordGridInfo = _standarAndSimpleLayout[e.GridInfo.Key];
            List <string>       noticeStrList    = null;

            if (scanBordGridInfo != null)
            {
                _tempCustomInfo = (SetCustomObjInfo)scanBordGridInfo.CustomObj;
                if (_tempCustomInfo == null)
                {
                    _customToolTip.SetTipInfo(_standarAndSimpleLayout.DrawPanel, null);
                    return;
                }
                noticeStrList = new List <string>();
                _tempCnt      = _tempCustomInfo.Count;

                noticeStrList.Add(StaticValue.SenderName + ":" + (_tempCustomInfo.ScanBordInfo.SenderIndex + 1));
                noticeStrList.Add(StaticValue.PortName + ":" + (_tempCustomInfo.ScanBordInfo.PortIndex + 1));
                noticeStrList.Add(StaticValue.ScanBoardName + ":" + (_tempCustomInfo.ScanBordInfo.ConnectIndex + 1));
                noticeStrList.Add("(X, Y):(" + e.GridInfo.Region.X + "," + e.GridInfo.Region.Y + ")");
                noticeStrList.Add("(W, H):(" + e.GridInfo.Region.Width + "," + e.GridInfo.Region.Height + ")");
                noticeStrList.Add(StaticValue.CountStr + ":" + _tempCustomInfo.Count);
            }

            _customToolTip.SetTipInfo(_standarAndSimpleLayout.DrawPanel, noticeStrList);
            if (!_customToolTip.TopLevel)
            {
                _customToolTip.TopLevel = true;
            }
        }
        private void StandarAndSimpleLayout_GridMouseDoubleClick(object sender, RectangularGridMouseEventArgs e)
        {
            if (e.GridInfo == null)
            {
                return;
            }
            _tempCustomInfo = (SetCustomObjInfo)e.GridInfo.CustomObj;
            if (_tempCustomInfo == null)
            {
                return;
            }
            _scanBoardTempInfo = (ScanBoardRegionInfo)_tempCustomInfo.ScanBordInfo.Clone();
            _tempCnt           = _tempCustomInfo.Count;

            _setInfoFrm = new Frm_SetInfo(_commonInfo.TypeStr, _tempCnt, _commonInfo.MaxCount);

            if (_setInfoFrm.ShowDialog() == DialogResult.OK)
            {
                _tempCustomInfo.Count = _setInfoFrm.Count;


                _tempAddr = StaticFunction.GetSBAddr(_commPort,
                                                     _scanBoardTempInfo.SenderIndex,
                                                     _scanBoardTempInfo.PortIndex,
                                                     _scanBoardTempInfo.ConnectIndex);

                _standarAndSimpleLayout.GridDic[_tempAddr].CustomObj = _tempCustomInfo;
                _curSettingDic[_tempAddr] = _setInfoFrm.Count;

                if (_setOneScanBoardInfoEvent != null)
                {
                    _setOneScanBoardInfoEvent.Invoke(_tempAddr, _setInfoFrm.Count);
                }
                _standarAndSimpleLayout.InvalidateDrawArea();
            }
        }
        /// <summary>
        /// ����ƶ��¼�
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void StandarAndSimpleLayout_GridMouseMove(object sender, RectangularGridMouseEventArgs e)
        {
            if (_customToolTip == null)
            {
                _customToolTip = new CustomToolTip();
                _customToolTip.Owner = this.ParentForm;
                _customToolTip.TipContentFont = _customToolTipFont;
            }
            if (e.GridInfo == null)
            {
                //��ǰ����ƶ����������޾��θ���
                _customToolTip.SetTipInfo(_standarAndSimpleLayout.DrawPanel, null);
                Debug.WriteLine("������ӵ�GridMouseMove�¼�������ȡ�ĸ�����ϢΪ��");
                return;
            }

            RectangularGridInfo scanBordGridInfo = _standarAndSimpleLayout[e.GridInfo.Key];
            List<string> noticeStrList = null;
            if (scanBordGridInfo != null)
            {
                _tempCustomInfo = (SetCustomObjInfo)scanBordGridInfo.CustomObj;
                if (_tempCustomInfo == null)
                {
                    _customToolTip.SetTipInfo(_standarAndSimpleLayout.DrawPanel, null);
                    return;
                }
                noticeStrList = new List<string>();
                _tempCnt = _tempCustomInfo.Count;

                noticeStrList.Add(StaticValue.SenderName + ":" + (_tempCustomInfo.ScanBordInfo.SenderIndex + 1));
                noticeStrList.Add(StaticValue.PortName + ":" + (_tempCustomInfo.ScanBordInfo.PortIndex + 1));
                noticeStrList.Add(StaticValue.ScanBoardName + ":" + (_tempCustomInfo.ScanBordInfo.ConnectIndex + 1));
                noticeStrList.Add("(X, Y):(" + e.GridInfo.Region.X + "," + e.GridInfo.Region.Y + ")");
                noticeStrList.Add("(W, H):(" + e.GridInfo.Region.Width + "," + e.GridInfo.Region.Height + ")");
                noticeStrList.Add(StaticValue.CountStr + ":" + _tempCustomInfo.Count);
            }

            _customToolTip.SetTipInfo(_standarAndSimpleLayout.DrawPanel, noticeStrList);
            if (!_customToolTip.TopLevel)
            {
                _customToolTip.TopLevel = true;
            }
        }
        private void StandarAndSimpleLayout_GridMouseDoubleClick(object sender, RectangularGridMouseEventArgs e)
        {
            if (e.GridInfo == null)
            {
                return;
            }
            _tempCustomInfo = (SetCustomObjInfo)e.GridInfo.CustomObj;
            if (_tempCustomInfo == null)
            {
                return;
            }
            _scanBoardTempInfo = (ScanBoardRegionInfo)_tempCustomInfo.ScanBordInfo.Clone();
            _tempCnt = _tempCustomInfo.Count;

            _setInfoFrm = new Frm_SetInfo(_commonInfo.TypeStr, _tempCnt, _commonInfo.MaxCount);

            if (_setInfoFrm.ShowDialog() == DialogResult.OK)
            {
                _tempCustomInfo.Count = _setInfoFrm.Count;

                _tempAddr = StaticFunction.GetSBAddr(_commPort,
                                                     _scanBoardTempInfo.SenderIndex,
                                                      _scanBoardTempInfo.PortIndex,
                                                      _scanBoardTempInfo.ConnectIndex);

                _standarAndSimpleLayout.GridDic[_tempAddr].CustomObj = _tempCustomInfo;
                _curSettingDic[_tempAddr] = _setInfoFrm.Count;

                if (_setOneScanBoardInfoEvent != null)
                {
                    _setOneScanBoardInfoEvent.Invoke(_tempAddr, _setInfoFrm.Count);
                }
                _standarAndSimpleLayout.InvalidateDrawArea();
            }
        }