Example #1
0
 private void English_RB_CheckedChanged(object sender, EventArgs e)
 {
     if (English_RB.Checked)
     {
         PrincipalBase.SetLocale("en");
     }
 }
Example #2
0
 private void Spanish_RB_CheckedChanged(object sender, EventArgs e)
 {
     if (Spanish_RB.Checked)
     {
         PrincipalBase.SetLocale("es-ES");
     }
 }
 private void Predeterminado_RB_CheckedChanged(object sender, EventArgs e)
 {
     if (Predeterminado_RB.Checked)
     {
         PrincipalBase.SetLocale("system");
     }
 }
Example #4
0
        static void Main()
        {
            PrincipalBase.SetLocale(CultureInfo.CurrentCulture.Name);

            AppDomain.CurrentDomain.UnhandledException       += new UnhandledExceptionEventHandler(UnhandledException);
            System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(ThreadException);
            System.Windows.Forms.Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);

            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);

            System.Windows.Forms.Application.Run(new MainForm());
        }