private void English_RB_CheckedChanged(object sender, EventArgs e) { if (English_RB.Checked) { PrincipalBase.SetLocale("en"); } }
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"); } }
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()); }