- Timestamp:
- 08/30/18 09:47:50 (6 years ago)
- Location:
- branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/Starter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/Starter/SplashScreen.cs
r15583 r16102 100 100 private void SafeUpdateMessage(string msg) { 101 101 try { 102 Invoke((Action<string>)UpdateMessage, msg); 103 } 104 catch (ObjectDisposedException) { } 102 if (InvokeRequired) { 103 Invoke((Action<string>)UpdateMessage, msg); 104 } else { 105 UpdateMessage(msg); 106 } 107 } catch (ObjectDisposedException) { } 105 108 } 106 109 -
branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/Starter/StarterForm.cs
r15583 r16102 88 88 : this() { 89 89 arguments = CommandLineArgumentHandling.GetArguments(args); 90 91 InitializeComponent(); 92 largeImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.HeuristicLab.ToBitmap()); 93 largeImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.UpdateAvailable.ToBitmap()); 94 smallImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.HeuristicLab.ToBitmap()); 95 smallImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.UpdateAvailable.ToBitmap()); 96 Text = "HeuristicLab " + AssemblyHelpers.GetFileVersion(GetType().Assembly); 97 98 string pluginPath = Path.GetFullPath(Application.StartupPath); 99 pluginManager = new PluginManager(pluginPath); 100 splashScreen = new SplashScreen(pluginManager, 1000); 101 splashScreen.VisibleChanged += new EventHandler(splashScreen_VisibleChanged); 102 if (arguments.All(x => !(x is HideStarterArgument))) 103 splashScreen.Show(this, "Loading HeuristicLab..."); 104 105 if (CheckSavedStarterFormSettings()) { 106 Location = Settings.Default.StarterFormLocation; 107 Size = Settings.Default.StarterFormSize; 108 WindowState = Settings.Default.StarterFormWindowState; 109 } 110 111 pluginManager.DiscoverAndCheckPlugins(); 112 UpdateApplicationsList(); 113 114 CheckUpdatesAvailableAsync(); 90 115 } 91 116 … … 320 345 321 346 private void StartApplication(ApplicationDescription app, ICommandLineArgument[] args) { 322 splashScreen.Show("Loading " + app.Name); 347 if (args.All(x => !(x is HideStarterArgument))) 348 splashScreen.Show("Loading " + app.Name); 323 349 Thread t = new Thread(delegate() { 324 350 bool stopped = false;
Note: See TracChangeset
for help on using the changeset viewer.