Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13353


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)

Location:
branches/RefactorPluginInfrastructure-2522
Files:
1 deleted
4 edited

Legend:

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

    r13338 r13353  
    3636    public AboutDialog() {
    3737      InitializeComponent();
    38       var curAssembly = this.GetType().Assembly;
    39       productTextBox.Text = GetProduct(curAssembly);
    40       versionTextBox.Text = GetVersion();
    41       copyrightTextBox.Text = GetCopyright(curAssembly);
     38      var entryAssembly = Assembly.GetEntryAssembly();
     39      productTextBox.Text = GetProduct(entryAssembly);
     40      versionTextBox.Text = entryAssembly.GetFileVersion();
     41      copyrightTextBox.Text = GetCopyright(entryAssembly);
    4242      imageList.Images.Add(Resources.Plugin);
    4343      pictureBox.Image = Resources.HeuristicLabLogo;
     
    7777    }
    7878
    79     private string GetVersion() {
    80       return AssemblyExtensions.GetFileVersion(GetType().Assembly);
    81     }
    82 
    8379    private string GetProduct(Assembly asm) {
    8480      AssemblyProductAttribute attribute = GetAttribute<AssemblyProductAttribute>(asm);
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.PluginInfrastructure.UI/HeuristicLab.PluginInfrastructure.UI-4.0.csproj

    r13340 r13353  
    8484      <DependentUpon>LicenseView.cs</DependentUpon>
    8585    </Compile>
    86     <Compile Include="Main.cs" />
    8786    <Compile Include="MultiSelectListView.cs">
    8887      <SubType>Component</SubType>
  • 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
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab/3.3/Properties/AssemblyInfo.cs.frame

    r13321 r13353  
    2929[assembly: AssemblyTitle("HeuristicLab 3.3")]
    3030[assembly: AssemblyDescription("HeuristicLab 3.3")]
     31[assembly: AssemblyInformationalVersionAttribute("Windischgarsten (Nov-2015)")]
    3132[assembly: AssemblyConfiguration("")]
    3233[assembly: AssemblyCompany("")]
Note: See TracChangeset for help on using the changeset viewer.