Exemplo n.º 1
0
        public void TranslateUI()
        {
            TranslationUtils.TranslateComponents(Resources.ResourceManager, this, components);
            TranslationUtils.TranslateControls(Controls);
            mComp.Tag = null;
            //PrepareContextMenu();
            var panelView = App.MainPages.View.ActivePanelView;

            if (panelView == this)
            {
                m_Presenter.UpdateItemsAndStatus();
            }
        }
Exemplo n.º 2
0
        public void TranslateUI()
        {
            // translate sub-components
            TranslationUtils.TranslateComponents(Resources.ResourceManager, this, components);
            mTrayOpen_TranslateUI();
            TranslationUtils.TranslateControls(Controls);
            // addons context menu will refresh later
            popTop.Tag = null;
            // refresh tab names
            var pages         = App.MainPages;
            var shortcutIndex = App.Presenter.FindShortcutKeysPanelIndex();

            for (int index = 0; index < pages.Count; index++)
            {
                var model = pages.GetItem(index);
                App.MainPages.UpdateTabName(index);
                if (index == shortcutIndex)
                {
                    model.AsyncRetrieveData(false);
                }
            }
        }
Exemplo n.º 3
0
 public void TranslateUI()
 {
     TranslationUtils.TranslateComponents(Resources.ResourceManager, this, components);
     SetupContextMenu(popPages.Items);
     TranslationUtils.TranslateControls(Controls);
 }