public UC_OneScreenLayout(string commPort, ILEDDisplayInfo ledDisplayInfo,
                                  Dictionary<string, byte> curAllSettingDic,
                                  SettingCommInfo commInfo, 
                                  SettingMonitorCntEventHandler SetOneScanBoardInfoEvent)
        {
            InitializeComponent();
            this.Disposed += new EventHandler(UC_OneScreenLayout_Disposed);

            _commPort = commPort;
            _curLedInf = ledDisplayInfo;
            _curSettingDic = curAllSettingDic;

            _customToolTipFont = this.Font;
            _complexScreenFont = this.Font;
            _simpleOrStandardScreenFont = this.Font;
            try
            {
                _commonInfo = (SettingCommInfo)commInfo.Clone();
            }
            catch
            {
                _commonInfo = new SettingCommInfo();
            }
            _setOneScanBoardInfoEvent = SetOneScanBoardInfoEvent;

            _ledType = _curLedInf.Type;
            if (_ledType == LEDDisplyType.ComplexType)
            {
                _complexLayout = new UC_ComplexLayout(_commonInfo);
                _complexLayout.Parent = doubleBufferPanel_SettingZoon;
                _complexLayout.Dock = DockStyle.Fill;
                _complexLayout.SetComplexScreenInfEvent += new SettingMonitorCntEventHandler(ComplexScreenSetInfo);
                groupBox_ScalingRate.Visible = false;
            }
            else
            {
                _standarAndSimpleLayout = new UC_StandarAndSimpleLayout(_commonInfo);
                _standarAndSimpleLayout.DefaultFocusStyle.BackColor = Color.Wheat;
                _standarAndSimpleLayout.IsCanSelect = true;
                _standarAndSimpleLayout.IsCanSelectMoreGrid = true;
                _standarAndSimpleLayout.Parent = doubleBufferPanel_SettingZoon;
                _standarAndSimpleLayout.Dock = DockStyle.Fill;
                _standarAndSimpleLayout.BorderStyle = BorderStyle.FixedSingle;
                _standarAndSimpleLayout.BackColor = Color.Transparent;
                _standarAndSimpleLayout.ClearAllRectangularGrid();
                _standarAndSimpleLayout.ContextMenuStrip = contextMenuStrip_Set;
                _standarAndSimpleLayout.GridMouseMove += new RectangularGridMouseEventHandler(StandarAndSimpleLayout_GridMouseMove);

                _standarAndSimpleLayout.GridMouseDoubleClick += new RectangularGridMouseEventHandler(StandarAndSimpleLayout_GridMouseDoubleClick);

                groupBox_ScalingRate.Visible = true;
            }
            UpdateDisplay();
            if (_standarAndSimpleLayout != null)
            {
                vScrollBar_PixelLength_Scroll(null, null);
            }
        }
        public UC_OneScreenLayout(string commPort, ILEDDisplayInfo ledDisplayInfo,
                                  Dictionary <string, byte> curAllSettingDic,
                                  SettingCommInfo commInfo,
                                  SettingMonitorCntEventHandler SetOneScanBoardInfoEvent)
        {
            InitializeComponent();
            this.Disposed += new EventHandler(UC_OneScreenLayout_Disposed);

            _commPort      = commPort;
            _curLedInf     = ledDisplayInfo;
            _curSettingDic = curAllSettingDic;

            _customToolTipFont          = this.Font;
            _complexScreenFont          = this.Font;
            _simpleOrStandardScreenFont = this.Font;
            try
            {
                _commonInfo = (SettingCommInfo)commInfo.Clone();
            }
            catch
            {
                _commonInfo = new SettingCommInfo();
            }
            _setOneScanBoardInfoEvent = SetOneScanBoardInfoEvent;

            _ledType = _curLedInf.Type;
            if (_ledType == LEDDisplyType.ComplexType)
            {
                _complexLayout        = new UC_ComplexLayout(_commonInfo);
                _complexLayout.Parent = doubleBufferPanel_SettingZoon;
                _complexLayout.Dock   = DockStyle.Fill;
                _complexLayout.SetComplexScreenInfEvent += new SettingMonitorCntEventHandler(ComplexScreenSetInfo);
                groupBox_ScalingRate.Visible             = false;
            }
            else
            {
                _standarAndSimpleLayout = new UC_StandarAndSimpleLayout(_commonInfo);
                _standarAndSimpleLayout.DefaultFocusStyle.BackColor = Color.Wheat;
                _standarAndSimpleLayout.IsCanSelect         = true;
                _standarAndSimpleLayout.IsCanSelectMoreGrid = true;
                _standarAndSimpleLayout.Parent      = doubleBufferPanel_SettingZoon;
                _standarAndSimpleLayout.Dock        = DockStyle.Fill;
                _standarAndSimpleLayout.BorderStyle = BorderStyle.FixedSingle;
                _standarAndSimpleLayout.BackColor   = Color.Transparent;
                _standarAndSimpleLayout.ClearAllRectangularGrid();
                _standarAndSimpleLayout.ContextMenuStrip = contextMenuStrip_Set;
                _standarAndSimpleLayout.GridMouseMove   += new RectangularGridMouseEventHandler(StandarAndSimpleLayout_GridMouseMove);

                _standarAndSimpleLayout.GridMouseDoubleClick += new RectangularGridMouseEventHandler(StandarAndSimpleLayout_GridMouseDoubleClick);

                groupBox_ScalingRate.Visible = true;
            }
            UpdateDisplay();
            if (_standarAndSimpleLayout != null)
            {
                vScrollBar_PixelLength_Scroll(null, null);
            }
        }