Changeset 1833 for trunk/sources/HeuristicLab.Hive.Client.Console
- Timestamp:
- 05/15/09 14:39:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Console/3.2/HiveClientConsole.cs
r1579 r1833 51 51 private const string EVENTLOGNAME = "Hive Client"; 52 52 53 private EventLog HiveClientEventLog;53 //private EventLog HiveClientEventLog; 54 54 private ClientConsoleCommunicatorClient cccc; 55 55 private System.Windows.Forms.Timer refreshTimer; … … 74 74 ConnectToClient(); 75 75 RefreshGui(); 76 GetEventLog();76 //GetEventLog(); 77 77 InitCalender(); 78 78 } … … 124 124 } 125 125 126 private void GetEventLog()127 {128 HiveClientEventLog = new EventLog(EVENTLOGNAME);129 HiveClientEventLog.Source = EVENTLOGNAME;130 HiveClientEventLog.EntryWritten += new EntryWrittenEventHandler(OnEntryWritten);131 HiveClientEventLog.EnableRaisingEvents = true;132 133 ListViewItem curEventLogEntry;134 135 //databinding on listview?136 if (HiveClientEventLog != null && HiveClientEventLog.Entries != null)137 {138 foreach (EventLogEntry ele in HiveClientEventLog.Entries)139 {140 curEventLogEntry = GenerateEventEntry(ele);141 lvLog.Items.Add(curEventLogEntry);142 }143 lvJobDetail.Sort();144 }145 }126 //private void GetEventLog() 127 //{ 128 // HiveClientEventLog = new EventLog(EVENTLOGNAME); 129 // HiveClientEventLog.Source = EVENTLOGNAME; 130 // HiveClientEventLog.EntryWritten += new EntryWrittenEventHandler(OnEntryWritten); 131 // HiveClientEventLog.EnableRaisingEvents = true; 132 133 // ListViewItem curEventLogEntry; 134 135 // //databinding on listview? 136 // if (HiveClientEventLog != null && HiveClientEventLog.Entries != null) 137 // { 138 // foreach (EventLogEntry ele in HiveClientEventLog.Entries) 139 // { 140 // curEventLogEntry = GenerateEventEntry(ele); 141 // lvLog.Items.Add(curEventLogEntry); 142 // } 143 // lvJobDetail.Sort(); 144 // } 145 //} 146 146 147 147 private ListViewItem GenerateEventEntry(EventLogEntry ele)
Note: See TracChangeset
for help on using the changeset viewer.