Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/30/18 09:47:50 (6 years ago)
Author:
abeham
Message:

#2213: some pending changes exploring the topic

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  
    100100    private void SafeUpdateMessage(string msg) {
    101101      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) { }
    105108    }
    106109
  • branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/Starter/StarterForm.cs

    r15583 r16102  
    8888      : this() {
    8989      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();
    90115    }
    91116
     
    320345
    321346    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);
    323349      Thread t = new Thread(delegate() {
    324350        bool stopped = false;
Note: See TracChangeset for help on using the changeset viewer.