Esempio n. 1
0
        internal ProfileTabContent([NotNull] ArcticFoxConfigurationWindow host)
        {
            if (host == null)
            {
                throw new ArgumentNullException("host");
            }
            m_host = host;

            InitializeComponent();
            InitializeControls();

            var localizableControls = ProfileLocalizationExtender.GetLocalizableControls();

                        #if DEBUG
            LocalizationManager.Instance.RegisterLocalizationKeyValue(localizableControls);
                        #endif

            var localizationDictionary = LocalizationManager.Instance.GetLocalizationDictionary();
            if (localizationDictionary == null || localizationDictionary.Count == 0)
            {
                return;
            }

            foreach (var kvp in localizableControls)
            {
                var control = kvp.Key;
                var key     = kvp.Value;

                if (localizationDictionary.ContainsKey(key))
                {
                    control.Text = localizationDictionary[key];
                }
            }
        }
Esempio n. 2
0
 private void StartArcticFoxConfiguration(object sender, EventArgs e)
 {
     using (var cfg = new ArcticFoxConfigurationWindow(m_configuration))
     {
         ShowDialogWindow(cfg);
     }
 }