Changeset 911
- Timestamp:
- 12/04/08 17:32:42 (16 years ago)
- 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 76 76 <RequiredTargetFramework>3.5</RequiredTargetFramework> 77 77 </Reference> 78 <Reference Include="System.ServiceModel"> 79 <RequiredTargetFramework>3.0</RequiredTargetFramework> 80 </Reference> 78 81 <Reference Include="System.Xml.Linq"> 79 82 <RequiredTargetFramework>3.5</RequiredTargetFramework> … … 89 92 <Reference Include="ZedGraph, Version=5.1.4.31904, Culture=neutral, PublicKeyToken=02a83cbd123fcd60, processorArchitecture=MSIL"> 90 93 <SpecificVersion>False</SpecificVersion> 91 <HintPath>. .\..\..\..\..\..\Program Files\HeuristicLab 3.0\plugins\ZedGraph.dll</HintPath>94 <HintPath>.\ZedGraph.dll</HintPath> 92 95 </Reference> 93 96 </ItemGroup> … … 140 143 <DesignTimeSharedInput>True</DesignTimeSharedInput> 141 144 </Compile> 145 <Compile Include="ServerProxy.cs" /> 146 <Compile Include="ServiceLocator.cs" /> 142 147 </ItemGroup> 143 148 <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> 144 153 <ProjectReference Include="..\HeuristicLab.Logging\HeuristicLab.Logging.csproj"> 145 154 <Project>{4095C92C-5A4C-44BC-9963-5F384CF5CC3F}</Project> -
trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs
r906 r911 31 31 using System.Threading; 32 32 using ZedGraph; 33 using HeuristicLab.Hive.Client.Communication.ClientConsole; 33 34 34 35 namespace HeuristicLab.Hive.Client.Console { 35 36 36 delegate void UpdateTextDelegate(EventLog ev);37 delegate void UpdateTextDelegate(EventLogEntry ev); 37 38 38 39 public partial class HiveClientConsole : Form { … … 44 45 InitializeComponent(); 45 46 GetEventLog(); 47 48 ClientConsoleCommunicatorClient cccc = ServiceLocator.ClientConsoleCommunicatorClient(); 49 StatusCommons curClientStatus = cccc.GetStatusInfos(); 46 50 } 47 51 … … 57 61 if(eve.EntryType == EventLogEntryType.Error) 58 62 curEventLogEntry = new ListViewItem("", 1); 59 curEventLogEntry.SubItems.Add(eve. EventID.ToString());63 curEventLogEntry.SubItems.Add(eve.InstanceId.ToString()); 60 64 curEventLogEntry.SubItems.Add(eve.Message); 61 65 curEventLogEntry.SubItems.Add(eve.TimeGenerated.Date.ToString()); … … 70 74 } 71 75 72 private void UpdateText(EventLog ev) {76 private void UpdateText(EventLogEntry ev) { 73 77 if (this.lvLog.InvokeRequired) { 74 78 this.lvLog.Invoke(new 75 79 UpdateTextDelegate(UpdateText), new object[] { ev }); 76 80 } 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 81 90 82 91 } 83 92 } 84 93 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 106 94 public void OnEntryWritten(object source, EntryWrittenEventArgs e) { 107 UpdateText( (EventLog)source);95 UpdateText(e.Entry); 108 96 } 109 97 … … 136 124 private void lvLog_DoubleClick(object sender, EventArgs e) { 137 125 ListViewItem lvi = lvLog.SelectedItems[0]; 138 139 126 HiveEventEntry hee = new HiveEventEntry(lvi.SubItems[2].Text, lvi.SubItems[3].Text, lvi.SubItems[4].Text, lvi.SubItems[1].Text); 140 127
Note: See TracChangeset
for help on using the changeset viewer.