Exemple #1
0
        public bool Remove(TraceLogEntry entry)
        {
            //Remove the specified trace log entry
            bool ret = false;

            try {
                ret = entry.Delete();
            }
            catch (Exception ex) { throw new ApplicationException("Unexpected error removing trace log entry.", ex); }
            return(ret);
        }
Exemple #2
0
        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");
                    }
                    TraceLogsDS.ArgixLogTableRow row = (TraceLogsDS.ArgixLogTableRow)rows[0];
                    entry          = new TraceLogEntry(row, this.mMediator);
                    entry.Changed += new EventHandler(OnEntryChanged);
                }
            }
            catch (Exception ex) { throw new ApplicationException("Unexpected error getting trace log entry.", ex); }
            return(entry);
        }
Exemple #3
0
 public bool Add(TraceLogEntry entry)
 {
     return(false);
 }