public void InitLocaleItem(ListItemSelectedEvent e, LocaleItemNode node, [JoinByScreen] SelectedLocaleNode selected, LocaleItemNode nodeA, [JoinByScreen] SingleNode <SelectLocaleScreenComponent> screen)
 {
     selected.selectedLocale.Code = node.locale.Code;
     if (node.locale.Code == LocaleUtils.GetSavedLocaleCode())
     {
         screen.component.DisableButtons();
     }
     else
     {
         screen.component.EnableButtons();
     }
 }
        public void InitSelectedLocaleItem(NodeAddedEvent e, LocaleItemNode node, [Context, JoinByScreen] SelectedLocaleNode selected, [Context, JoinByScreen] LocaleListNode localesList)
        {
            LocaleComponent locale = node.locale;

            node.localeItem.SetText(locale.Caption, locale.LocalizedCaption);
            string savedLocaleCode = LocaleUtils.GetSavedLocaleCode();

            if (locale.Code == savedLocaleCode)
            {
                this.SetLocaleText(selected, node.locale);
                localesList.simpleHorizontalList.Select(node.Entity);
            }
        }