Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/15 11:58:27 (8 years ago)
Author:
gkronber
Message:

#2522: added assembly attribute for release code name and updated AboutDialog as well as SplashScreen to show information of the EntryAssembly (in our case HeuristicLab-3.3.exe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.PluginInfrastructure.UI/SplashScreen.cs

    r13340 r13353  
    4242      this.pluginManager = manager;
    4343
     44      var entryAssembly = Assembly.GetEntryAssembly();
    4445      RegisterPluginManagerEventHandlers();
    4546
    46       versionLabel.Text = "Version " + typeof(PluginManager).Assembly.GetFileVersion() + " Windischgarsten (11/2015)";
     47      versionLabel.Text = "Version " + entryAssembly.GetFileVersion() + " "
     48        + entryAssembly.GetCustomAttributes().OfType<AssemblyInformationalVersionAttribute>().First().InformationalVersion; // code name
    4749      infoLabel.Text = "";
    4850
    49       var attr = (AssemblyCopyrightAttribute)typeof(PluginManager).Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false).Single();
     51      var attr = entryAssembly.GetCustomAttributes().OfType<AssemblyCopyrightAttribute>().Single();
    5052      copyrightLabel.Text = "Copyright " + attr.Copyright;
    5153
     
    101103      try {
    102104        Invoke((Action<string>)UpdateMessage, msg);
    103       }
    104       catch (ObjectDisposedException) { }
     105      } catch (ObjectDisposedException) { }
    105106    }
    106107
Note: See TracChangeset for help on using the changeset viewer.