ACAT.Lib.Extension.AlphabetScannerCommon.OnLoad C# (CSharp) 메소드

OnLoad() 공개 메소드

The form has loaded. Start the animation sequence. Call this from the OnLoad function in the Alphabet scanner
public OnLoad ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void
        public void OnLoad(object sender, EventArgs e)
        {
            _scannerCommon.OnLoad();

            subscribeToEvents();

            _currentWordWidget = (CurrentWordWidget)_rootWidget.Finder.FindChild(typeof(CurrentWordWidget));
            _wordListWidgetWidget = (WordListWidget)_rootWidget.Finder.FindChild(typeof(WordListWidget));
            KeyStateTracker.EvtKeyStateChanged += KeyStateTracker_EvtKeyStateChanged;

            if (!_scannerCommon.PreviewMode)
            {
                _scannerCommon.GetAnimationManager().Start(_rootWidget);
            }
            else
            {
                _rootWidget.HighlightOff();
            }

            if (WordPredictionWordCountMax <= 0 && _wordListWidgetWidget != null)
            {
                WordPredictionWordCountMax = _wordListWidgetWidget.Children.Count();
            }

            refreshWordPredictionsAndSetCurrentWord();
        }