//public void CloseSerialScanner()
        //{
        //    this.g_serialScanner.CloseCoreScanner();
        //}

        #region ▩ 함수
        private bool LoadScanner()
        {
            try
            {
                bool isRtnValue = false;

                if (IsSerialPortMode)
                {
                    this.g_serialScanner = this.g_baseApp.SerialScanner;

                    if (this.g_serialScanner != null)
                    {
                        switch (this.SerialScannerCommCode)
                        {
                        case BaseEnumClass.SerialScannerCode.CR_LF:
                            this.g_serialScanner.StartPreFix = (byte)13;        // CR
                            this.g_serialScanner.EndPreFix   = (byte)10;        // LF
                            break;

                        case BaseEnumClass.SerialScannerCode.STX_ETX:
                        default:
                            this.g_serialScanner.StartPreFix = (byte)2;         // STX
                            this.g_serialScanner.EndPreFix   = (byte)3;         // ETX
                            break;
                        }

                        // 화면에서 포트 번호를 설정하는 경우 포트번호를 Class로 넘겨서 사용
                        this.g_serialScanner.PortName = this.SerialPortName;
                        var _result = this.g_serialScanner.ConnectScanner();

                        isRtnValue = _result == null ? false : true;

                        if (_result != null)
                        {
                            if (_result.Result)
                            {
                                this.g_serialScanner.BarCodeReceived += Scanner_BarCodeReceived;
                            }
                            else
                            {
                                this.g_serialScanner.ScannerStatus();
                            }
                        }
                    }
                }

                return(isRtnValue);
            }
            catch { throw; }
        }
        public void UnLoadBarCodeScanner()
        {
            if (InputParent != null)
            {
                this.g_isFocus = false;
                this.Loaded   -= BarCodeReader_Loaded;
                this.Unloaded -= BarCodeReader_Unloaded;

                InputParent.GotFocus   -= InputParent_GotFocus;
                InputParent.LostFocus  -= InputParent_LostFocus;
                InputParent.MouseEnter -= InputParent_MouseEnter;
                InputParent.MouseDown  -= InputParent_MouseDown;
                InputParent.MouseLeave -= InputParent_MouseLeave;
            }

            if (this.g_serialScanner != null)
            {
                this.g_serialScanner.BarCodeReceived -= Scanner_BarCodeReceived;
                this.g_serialScanner = null;
            }
        }