Free cookie consent management tool by TermsFeed Policy Generator

Changeset 799 for trunk/sources


Ignore:
Timestamp:
11/20/08 17:47:19 (16 years ago)
Author:
aleitner
Message:

Added ServiceLocator to project (#380)

Location:
trunk/sources/HeuristicLab.Hive.Server.Console
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/HeuristicLab.Hive.Server.Console.csproj

    r794 r799  
    3939    <Reference Include="System.Core">
    4040      <RequiredTargetFramework>3.5</RequiredTargetFramework>
     41    </Reference>
     42    <Reference Include="System.ServiceModel">
     43      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    4144    </Reference>
    4245    <Reference Include="System.Xml.Linq">
     
    98101      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    99102    </Compile>
     103    <Compile Include="ServiceLocator.cs" />
    100104  </ItemGroup>
    101105  <ItemGroup>
     106    <ProjectReference Include="..\HeuristicLab.Hive.Contracts\HeuristicLab.Hive.Contracts.csproj">
     107      <Project>{134F93D7-E7C8-4ECD-9923-7F63259A60D8}</Project>
     108      <Name>HeuristicLab.Hive.Contracts</Name>
     109    </ProjectReference>
    102110    <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj">
    103111      <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs

    r794 r799  
    2828using System.Text;
    2929using System.Windows.Forms;
     30using HeuristicLab.Hive.Contracts.Interfaces;
     31using HeuristicLab.Hive.Contracts.BusinessObjects;
    3032
    3133namespace HeuristicLab.Hive.Server.Console {
     
    3739    public HiveServerConsole() {
    3840      InitializeComponent();
    39       tbIp.Text = "010.020.053.006";
     41      tbIp.Text = "10.20.53.1";
    4042    }
    4143
     
    5254    private void btnLogin_Click(object sender, EventArgs e) {
    5355      if (ipIsValid()) {
     56        string newIp = tbIp.Text;
     57        newIp = newIp.Replace(" ", "");
     58
     59        ServiceLocator.Address = newIp;
     60        ServiceLocator.Port = this.tbPort.Text;
     61
     62        IClientManager clientManager =
     63          ServiceLocator.GetClientManager();
     64
     65        List<ClientInfo> clients =
     66          clientManager.GetAllClients();
     67
    5468        this.Visible = false;
    5569        information = new HiveServerManagementConsole();
     
    6175
    6276    private static bool ipIsValid() {
     77     
    6378      // TODO IP-Adress validation
    6479      return true;
Note: See TracChangeset for help on using the changeset viewer.