Beispiel #1
0
 protected void ApplyCurrentCulture()
 {
     ApplyCultureToForm(Program.MainForm);
     foreach (Form form in Program.MainForm.OwnedForms)
     {
         ApplyCultureToForm(form);
     }
     Texts.RefreshCurrentRM();
 }
Beispiel #2
0
        private void OkButton_Click(object sender, EventArgs e)
        {
            CultureInfo newCulture = new CultureInfo(SelectedLanguage);

            CultureInfo.CurrentUICulture          = newCulture;
            Application.CurrentCulture            = newCulture;
            Thread.CurrentThread.CurrentUICulture = newCulture;
            Texts.RefreshCurrentRM();
            ApplyCurrentCulture();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            //ApplicationId id = new ApplicationId(Constants.BytesGuid, "الحاسبة الذكية", Constants.Version, "anycpu", "ar");
            Texts.RefreshCurrentRM();
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            Application.ThreadException += Application_ThreadException;
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
#if DEBUG
            Application.Run(new TryForm());
#endif
            MainForm = new MainForm(args);
            Application.Run(MainForm);
        }