private static void Main() { ServicePointManager.ServerCertificateValidationCallback += delegate { return(true); }; ClrTmp(true); Utils.CurrentRandom = new Random(); Settings.Default.PropertyChanged += Default_PropertyChanged; if (Settings.Default.AppsXml == "") { Settings.Default.AppsXml = Resources.DefaultISOs; } ISOInfo.RefreshISOs(); Thread.CurrentThread.CurrentCulture = new CultureInfo(Settings.Default.Lang); Thread.CurrentThread.CurrentUICulture = new CultureInfo(Settings.Default.Lang); Application.ApplicationExit += Application_ApplicationExit; Application.ThreadException += Application_ThreadException; AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainWindow()); ClrTmp(); }
private void theupdate() { mniUpdate.Visible = true; checkForUpdates(); mniUpdate.Visible = true; ISOInfo.RefreshISOs(); }
private static void Main() { ServicePointManager.ServerCertificateValidationCallback += delegate { return(true); }; FileIO.ClrTmp(true); Settings.Default.PropertyChanged += Default_PropertyChanged; if (Settings.Default.AppsXml == "") { Settings.Default.AppsXml = Resources.DefaultISOs; } ISOInfo.RefreshISOs(); Localization.UpdateThreadCulture(); Application.ApplicationExit += delegate { FileIO.ClrTmp(); }; Application.ThreadException += (_, e) => Utils.HandleUnhandled(e.Exception, "Thread exception"); AppDomain.CurrentDomain.UnhandledException += (_, e) => Utils.HandleUnhandled((Exception)e.ExceptionObject); W7RUtils.Install(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainWindow()); FileIO.ClrTmp(); }
public static void SetAppLng(CultureInfo c) { Settings.Default.Lang = c.Name; Settings.Default.Save(); Thread.CurrentThread.CurrentCulture = new CultureInfo(Settings.Default.Lang); Thread.CurrentThread.CurrentUICulture = new CultureInfo(Settings.Default.Lang); Settings.Default.Save(); ISOInfo.RefreshISOs(); }
private static void Default_PropertyChanged(object sender, PropertyChangedEventArgs e) { Settings.Default.Save(); if (e.PropertyName == "Lang") { Localization.UpdateThreadCulture(); ISOInfo.RefreshISOs(); } }
private static void Default_PropertyChanged(object sender, PropertyChangedEventArgs e) { Settings.Default.Save(); if (e.PropertyName == "Lang") { Thread.CurrentThread.CurrentCulture = new CultureInfo(Settings.Default.Lang); Thread.CurrentThread.CurrentUICulture = new CultureInfo(Settings.Default.Lang); ISOInfo.RefreshISOs(); } }