Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3163 for trunk/sources


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

Implemented (yet empty) start page in optimizer (#936).

Location:
trunk/sources
Files:
6 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab 3.3/MergeConfigs.cmd

    r2643 r3163  
    11ConfigMerger "%SolutionDir%\HeuristicLab.PluginInfrastructure\%Outdir%\HeuristicLab.PluginInfrastructure.dll.config" "HeuristicLab.exe.config"
     2ConfigMerger "%SolutionDir%\HeuristicLab.Optimizer\3.3\%Outdir%\HeuristicLab.Optimizer-3.3.dll.config" "HeuristicLab.exe.config"
    23ConfigMerger "%SolutionDir%\HeuristicLab.Persistence\3.3\%Outdir%\HeuristicLab.Persistence-3.3.dll.config" "HeuristicLab.exe.config"
    34ConfigMerger "%SolutionDir%\HeuristicLab.Tracing\3.2\%Outdir%\HeuristicLab.Tracing-3.2.dll.config" "HeuristicLab.exe.config"
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.Designer.cs

    r2924 r3163  
    6565      this.Name = "OperatorsSidebar";
    6666      this.Size = new System.Drawing.Size(316, 296);
    67       this.Load += new System.EventHandler(this.OperatorsSidebar_Load);
    6867      this.ResumeLayout(false);
    6968
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.cs

    r2917 r3163  
    3131    }
    3232
    33     protected virtual void OperatorsSidebar_Load(object sender, EventArgs e) {
     33    protected override void OnInitialized(EventArgs e) {
     34      base.OnInitialized(e);
    3435      typeSelector.Configure(typeof(IOperator), false, false);
    3536    }
    36 
    3737    protected override void OnClosing(FormClosingEventArgs e) {
    3838      base.OnClosing(e);
  • trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj

    r2931 r3163  
    8787    <None Include="HeuristicLabOptimizerPlugin.cs.frame" />
    8888    <Compile Include="FileManager.cs" />
     89    <Compile Include="MenuItems\StartPageMenuItem.cs" />
     90    <Compile Include="Properties\Settings.Designer.cs">
     91      <AutoGen>True</AutoGen>
     92      <DesignTimeSharedInput>True</DesignTimeSharedInput>
     93      <DependentUpon>Settings.settings</DependentUpon>
     94    </Compile>
     95    <Compile Include="StartPage.cs">
     96      <SubType>UserControl</SubType>
     97    </Compile>
     98    <Compile Include="StartPage.Designer.cs">
     99      <DependentUpon>StartPage.cs</DependentUpon>
     100    </Compile>
    89101    <Compile Include="MenuItems\CloseMenuItem.cs" />
    90102    <Compile Include="MenuItems\CloseAllMenuItem.cs" />
     
    123135  </ItemGroup>
    124136  <ItemGroup>
     137    <None Include="app.config" />
    125138    <None Include="HeuristicLab.snk" />
    126139    <None Include="Properties\AssemblyInfo.frame" />
     140    <None Include="Properties\Settings.settings">
     141      <Generator>SettingsSingleFileGenerator</Generator>
     142      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
     143    </None>
    127144  </ItemGroup>
    128145  <ItemGroup>
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/OperatorsMenuItem.cs

    r2790 r3163  
    3838    }
    3939    public override int Position {
    40       get { return 2100; }
     40      get { return 2200; }
    4141    }
    4242
     
    4646
    4747      menuItem = ToolStripItem as ToolStripMenuItem;
    48       if (menuItem != null)
     48      if (menuItem != null) {
    4949        menuItem.CheckOnClick = true;
     50        menuItem.Checked = true;
     51      }
    5052    }
    5153
     
    6062
    6163    public override void Execute() {
    62       var view = (from v in MainFormManager.MainForm.Views
    63                  where v is OperatorsSidebar
    64                  select v as OperatorsSidebar).FirstOrDefault();
     64      var view = MainFormManager.MainForm.Views.OfType<OperatorsSidebar>().FirstOrDefault();
    6565      if (view.IsShown)
    6666        view.Hide();
  • trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs

    r2931 r3163  
    5050      operatorsSidebar.Dock = DockStyle.Left;
    5151      operatorsSidebar.Show();
     52      if (Properties.Settings.Default.ShowStartPage) {
     53        StartPage startPage = new StartPage();
     54        startPage.Show();
     55      }
    5256    }
    5357  }
Note: See TracChangeset for help on using the changeset viewer.