Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1833


Ignore:
Timestamp:
05/15/09 14:39:06 (16 years ago)
Author:
kgrading
Message:

removed windows eventlog property (#467)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/HiveClientConsole.cs

    r1579 r1833  
    5151    private const string EVENTLOGNAME = "Hive Client";
    5252
    53     private EventLog HiveClientEventLog;
     53    //private EventLog HiveClientEventLog;
    5454    private ClientConsoleCommunicatorClient cccc;
    5555    private System.Windows.Forms.Timer refreshTimer;
     
    7474      ConnectToClient();
    7575      RefreshGui();
    76       GetEventLog();
     76      //GetEventLog();
    7777      InitCalender();
    7878    }
     
    124124    }
    125125
    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    //}
    146146
    147147    private ListViewItem GenerateEventEntry(EventLogEntry ele)
Note: See TracChangeset for help on using the changeset viewer.