public bool Remove(TraceLogEntry entry) { //Remove the specified trace log entry bool bRet = false; try { bRet = entry.Delete(); } catch (Exception ex) { throw ex; } return(bRet); }
public TraceLogEntry Item(int id) { //Return an existing log entry from the log collection TraceLogEntry entry = null; try { //Merge from collection (dataset) if (id > 0) { DataRow[] rows = this.mLogEntries.ArgixLogTable.Select("ID=" + id); if (rows.Length == 0) { throw new ApplicationException("Log entry for id=" + id + " does not exist in this log table!\n"); } ScannerDS.ArgixLogTableRow row = (ScannerDS.ArgixLogTableRow)rows[0]; entry = new TraceLogEntry(row, this.mMediator); entry.Changed += new EventHandler(OnEntryChanged); } } catch (Exception ex) { throw ex; } return(entry); }
public bool Add(TraceLogEntry entry) { //Add a new trace log entry return(false); }