ACAT.Lib.Extension.AlphabetScannerCommon.Initialize C# (CSharp) Method

Initialize() public method

Call this in the Initialize function of the Alphabet scanner
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup arguments
return bool
        public bool Initialize(StartupArg startupArg)
        {
            PanelClass = startupArg.PanelClass;

            _scannerCommon = new ScannerCommon(_scannerPanel);
            _scannerHelper = new ScannerHelper(_scannerPanel, startupArg);

            if (!_scannerCommon.Initialize(startupArg))
            {
                Log.Debug("Could not initialize form " + _form.Name);
                return false;
            }

            _rootWidget = _scannerCommon.GetRootWidget();

            return true;
        }

Usage Example

Example #1
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup params</param>
        /// <returns>true on cussess</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _alphabetScannerCommon = new AlphabetScannerCommon(this);

            _alphabetScannerCommon.EvtFormatPreditionWord += _alphabetScannerCommon_EvtFormatPreditionWord;

            bool retVal = _alphabetScannerCommon.Initialize(startupArg);
            if (retVal)
            {
                ScannerCommon.CreateStatusBar();
            }

            return retVal;
        }
All Usage Examples Of ACAT.Lib.Extension.AlphabetScannerCommon::Initialize