Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="selectedIndex">0 for RO, 1 for EN</param>
        internal void ChangeLanguage(int selectedIndex)
        {
            string culture       = selectedIndex == 0 ? "ro" : "en";
            var    cultureUIInfo = CultureInfo.GetCultureInfo(culture);
            var    cultureInfo   = CultureInfo.GetCultureInfo("en-US");

            System.Threading.Thread.CurrentThread.CurrentUICulture = cultureUIInfo;
            //System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;
            WinFormExtensions.LocalizeLabels(View as Control, Res);
        }
Esempio n. 2
0
 public virtual void InitializeView()
 {
     WinFormExtensions.LocalizeLabels(View as Control, Res);
 }