RefreshISOs() public static method

public static RefreshISOs ( ) : void
return void
コード例 #1
0
        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();
        }
コード例 #2
0
 private void theupdate()
 {
     mniUpdate.Visible = true;
     checkForUpdates();
     mniUpdate.Visible = true;
     ISOInfo.RefreshISOs();
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: Jriyuu/SharpBoot
        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();
        }
コード例 #4
0
 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();
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: Jriyuu/SharpBoot
 private static void Default_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     Settings.Default.Save();
     if (e.PropertyName == "Lang")
     {
         Localization.UpdateThreadCulture();
         ISOInfo.RefreshISOs();
     }
 }
コード例 #6
0
 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();
     }
 }