Ejemplo n.º 1
0
Archivo: Program.cs Proyecto: Penta/GFE
        static public void ObtenirLangue()
        {
            EmbeddedAssembly.Load(@"Gfe.lib.fr.resources.dll", @"Gfe.lib.fr.resources.dll");
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            string langue = Registre.RecupererLangue();

            if (langue == "fr")
            {
                Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("fr");
            }
            else if (langue == "en")
            {
                Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en");
            }
        }
Ejemplo n.º 2
0
        private void ChargerConfig()
        {
            Langue.TraduireValeur();

            cb_couleur.Text              = Principale.couleur;
            cb_dispo.Text                = Principale.affichage;
            txt_externe.Text             = Principale.logiciel;
            txt_extension.Text           = Principale.extension;
            check_rappel.Checked         = Principale.rappel;
            check_constanteVerif.Checked = Principale.rechargementConstant;
            check_sousdossier.Checked    = Principale.sousDossier;
            check_conversion.Checked     = Principale.conversion;
            comboLangue.SelectedIndex    = ancienneLangue = ConvertionLangueEnID(Registre.RecupererLangue());


            if (!Program.nonXP)
            {
                check_conversion.Enabled = false;
            }
        }