Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/09/11 20:19:43 (13 years ago)
Author:
ascheibe
Message:

#1233 added Hive Slave HL App client

Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.App/3.3
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.App/3.3/HeuristicLab.Clients.Hive.Slave.App-3.3.csproj

    r6704 r6730  
    5757      <HintPath>..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core-3.3.dll</HintPath>
    5858    </Reference>
     59    <Reference Include="HeuristicLab.Core.Views-3.3">
     60      <HintPath>..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core.Views-3.3.dll</HintPath>
     61    </Reference>
     62    <Reference Include="HeuristicLab.MainForm-3.3">
     63      <HintPath>..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.MainForm-3.3.dll</HintPath>
     64    </Reference>
     65    <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3">
     66      <HintPath>..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.MainForm.WindowsForms-3.3.dll</HintPath>
     67    </Reference>
    5968    <Reference Include="HeuristicLab.PluginInfrastructure-3.3">
    6069      <HintPath>..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath>
     
    7483    <Compile Include="HeuristicLabClientsHiveSlaveAppPlugin.cs" />
    7584    <Compile Include="HiveSlaveApplication.cs" />
     85    <Compile Include="MainWindow.cs">
     86      <SubType>Form</SubType>
     87    </Compile>
     88    <Compile Include="MainWindow.Designer.cs">
     89      <DependentUpon>MainWindow.cs</DependentUpon>
     90    </Compile>
    7691    <Compile Include="Properties\AssemblyInfo.cs" />
     92    <EmbeddedResource Include="MainWindow.resx">
     93      <DependentUpon>MainWindow.cs</DependentUpon>
     94    </EmbeddedResource>
    7795    <EmbeddedResource Include="Properties\Resources.resx">
    7896      <Generator>ResXFileCodeGenerator</Generator>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.App/3.3/HiveSlaveApplication.cs

    r6712 r6730  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
     22using System.Threading;
    2523using System.Windows.Forms;
     24using HeuristicLab.Clients.Hive.SlaveCore.Views;
    2625using HeuristicLab.PluginInfrastructure;
    27 using HeuristicLab.Clients.Hive.SlaveCore.Views;
    28 using System.Threading;
    2926
    3027namespace HeuristicLab.Clients.Hive.Slave.App {
    3128  [Application("Hive Slave", "Runs the Hive Slave as a HeuristicLab application")]
    3229  internal class HiveSlaveApplication : ApplicationBase {
     30    public override void Run() {
     31      HeuristicLab.Clients.Hive.SlaveCore.Core core = new HeuristicLab.Clients.Hive.SlaveCore.Core();
     32      Thread coreThread = new Thread(core.Start);
     33      coreThread.IsBackground = true;
     34      coreThread.Start();
    3335
    34     public override void Run() {
    35      
    36            
     36      SlaveItem item = new SlaveItem();
     37      MainWindow window = new MainWindow();
     38      window.SetContent(item);
     39      Application.Run(window);
     40
     41      core.Shutdown();
    3742    }
    3843  }
Note: See TracChangeset for help on using the changeset viewer.