Free cookie consent management tool by TermsFeed Policy Generator

Changeset 911


Ignore:
Timestamp:
12/04/08 17:32:42 (16 years ago)
Author:
whackl
Message:

bug fixed (#397)

Location:
trunk/sources/HeuristicLab.Hive.Client.Console
Files:
3 added
2 edited

Legend:

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

    r906 r911  
    7676      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    7777    </Reference>
     78    <Reference Include="System.ServiceModel">
     79      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     80    </Reference>
    7881    <Reference Include="System.Xml.Linq">
    7982      <RequiredTargetFramework>3.5</RequiredTargetFramework>
     
    8992    <Reference Include="ZedGraph, Version=5.1.4.31904, Culture=neutral, PublicKeyToken=02a83cbd123fcd60, processorArchitecture=MSIL">
    9093      <SpecificVersion>False</SpecificVersion>
    91       <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.0\plugins\ZedGraph.dll</HintPath>
     94      <HintPath>.\ZedGraph.dll</HintPath>
    9295    </Reference>
    9396  </ItemGroup>
     
    140143      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    141144    </Compile>
     145    <Compile Include="ServerProxy.cs" />
     146    <Compile Include="ServiceLocator.cs" />
    142147  </ItemGroup>
    143148  <ItemGroup>
     149    <ProjectReference Include="..\HeuristicLab.Hive.Client.Communication\HeuristicLab.Hive.Client.Communication.csproj">
     150      <Project>{AEB51212-CDBA-4FC6-A2EE-02359AA53ECE}</Project>
     151      <Name>HeuristicLab.Hive.Client.Communication</Name>
     152    </ProjectReference>
    144153    <ProjectReference Include="..\HeuristicLab.Logging\HeuristicLab.Logging.csproj">
    145154      <Project>{4095C92C-5A4C-44BC-9963-5F384CF5CC3F}</Project>
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs

    r906 r911  
    3131using System.Threading;
    3232using ZedGraph;
     33using HeuristicLab.Hive.Client.Communication.ClientConsole;
    3334
    3435namespace HeuristicLab.Hive.Client.Console {
    3536
    36   delegate void UpdateTextDelegate(EventLog ev);
     37  delegate void UpdateTextDelegate(EventLogEntry ev);
    3738
    3839  public partial class HiveClientConsole : Form {
     
    4445      InitializeComponent();
    4546      GetEventLog();
     47
     48      ClientConsoleCommunicatorClient cccc = ServiceLocator.ClientConsoleCommunicatorClient();
     49      StatusCommons curClientStatus = cccc.GetStatusInfos();
    4650    }
    4751
     
    5761        if(eve.EntryType == EventLogEntryType.Error)
    5862          curEventLogEntry = new ListViewItem("", 1);
    59         curEventLogEntry.SubItems.Add(eve.EventID.ToString());
     63        curEventLogEntry.SubItems.Add(eve.InstanceId.ToString());
    6064        curEventLogEntry.SubItems.Add(eve.Message);
    6165        curEventLogEntry.SubItems.Add(eve.TimeGenerated.Date.ToString());
     
    7074    }
    7175
    72     private void UpdateText(EventLog ev) {
     76    private void UpdateText(EventLogEntry ev) {
    7377      if (this.lvLog.InvokeRequired) {
    7478        this.lvLog.Invoke(new
    7579          UpdateTextDelegate(UpdateText), new object[] { ev });
    7680      } else {
    77         //string str = ev.Entries[numEntries].TimeWritten + " -> " + ev.Entries[numEntries].Message;
    78         //numEntries++;
    79         //lbEventLog.Items.Add(str);
    80         //lbEventLog.SelectedIndex = lbEventLog.Items.Count - 1;
     81        ListViewItem curEventLogEntry;
     82        curEventLogEntry = new ListViewItem("", 0);
     83        if (ev.EntryType == EventLogEntryType.Error)
     84          curEventLogEntry = new ListViewItem("", 1);
     85        curEventLogEntry.SubItems.Add(ev.EventID.ToString());
     86        curEventLogEntry.SubItems.Add(ev.Message);
     87        curEventLogEntry.SubItems.Add(ev.TimeGenerated.Date.ToString());
     88        curEventLogEntry.SubItems.Add(ev.TimeGenerated.TimeOfDay.ToString());
     89
    8190
    8291      }
    8392    }
    8493
    85     //private void tsmiExit_Click(object sender, EventArgs e) {
    86     //  this.Close();
    87     //}
    88 
    89     //private void btnConnect_Click(object sender, EventArgs e) {
    90     //  btnConnect.Enabled = false;
    91     //  btnDisconnect.Enabled = true;
    92     //  tbIp.Enabled = false;
    93     //  tbPort.Enabled = false;
    94     //  tbUuid.Enabled = false;
    95     //  lbEventLog.Items.Add(tbIp.Text);
    96     //}
    97 
    98     //private void btnDisconnect_Click(object sender, EventArgs e) {
    99     //  btnDisconnect.Enabled = false;
    100     //  btnConnect.Enabled = true;
    101     //  tbIp.Enabled = true;
    102     //  tbPort.Enabled = true;
    103     //  tbUuid.Enabled = true;
    104     //}
    105 
    10694    public void OnEntryWritten(object source, EntryWrittenEventArgs e) {
    107       UpdateText((EventLog)source);
     95      UpdateText(e.Entry);
    10896    }
    10997
     
    136124    private void lvLog_DoubleClick(object sender, EventArgs e) {
    137125      ListViewItem lvi = lvLog.SelectedItems[0];
    138 
    139126      HiveEventEntry hee = new HiveEventEntry(lvi.SubItems[2].Text, lvi.SubItems[3].Text, lvi.SubItems[4].Text, lvi.SubItems[1].Text);
    140127     
Note: See TracChangeset for help on using the changeset viewer.