Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/10 01:03:30 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on ItemAttribute and named items
  • corrected version information in Optimizer
Location:
trunk/sources/HeuristicLab.Optimizer/3.3
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj

    r2900 r2931  
    9595    <Compile Include="MenuItems\OpenMenuItem.cs" />
    9696    <Compile Include="MenuItems\ExitMenuItem.cs" />
    97     <Compile Include="HeuristicLabOptimizerApplication.cs" />
    9897    <Compile Include="HeuristicLabOptimizerPlugin.cs" />
    9998    <Compile Include="IOptimizerUserInterfaceItemProvider.cs" />
  • trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLabOptimizerPlugin.cs.frame

    r2790 r2931  
    2020#endregion
    2121
     22using System.Windows.Forms;
    2223using HeuristicLab.PluginInfrastructure;
    2324
     
    3334  public class HeuristicLabOptimizerPlugin : PluginBase {
    3435  }
     36
     37  [Application("Optimizer", "HeuristicLab Optimizer 3.3.0.$WCREV$")]
     38  internal class HeuristicLabOptimizerApplication : ApplicationBase {
     39    public override void Run() {
     40      OptimizerMainForm mainForm = new OptimizerMainForm(typeof(IOptimizerUserInterfaceItemProvider));
     41      Application.Run(mainForm);
     42    }
     43  }
    3544}
  • trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs

    r2791 r2931  
    2121
    2222using System;
     23using System.Linq;
    2324using System.Reflection;
    2425using System.Windows.Forms;
     
    4142    protected override void OnInitialized(EventArgs e) {
    4243      base.OnInitialized(e);
    43       Title = "HeuristicLab Optimizer " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
     44      AssemblyFileVersionAttribute version = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true).
     45                                             Cast<AssemblyFileVersionAttribute>().FirstOrDefault();
     46      Title = "HeuristicLab Optimizer";
     47      if (version != null) Title += " " + version.Version;
    4448      ViewClosed += new EventHandler<ViewEventArgs>(FileManager.ViewClosed);
    4549      OperatorsSidebar operatorsSidebar = new OperatorsSidebar();
Note: See TracChangeset for help on using the changeset viewer.