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();
}