Trace view model was changed
This commit is contained in:
27
StructureHelperCommon/Models/Loggers/TableLogEntry.cs
Normal file
27
StructureHelperCommon/Models/Loggers/TableLogEntry.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using StructureHelperCommon.Models.Tables;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models
|
||||
{
|
||||
public class TableLogEntry : ITraceLoggerEntry
|
||||
{
|
||||
private ShTable<ITraceLoggerEntry> table;
|
||||
public ShTable<ITraceLoggerEntry> Table {get => table;}
|
||||
public DateTime TimeStamp { get; }
|
||||
|
||||
public int Priority { get; set; }
|
||||
public TableLogEntry(int rowSize)
|
||||
{
|
||||
if (rowSize <= 0)
|
||||
{
|
||||
throw new ArgumentException("Row size must be greater than 0.", nameof(rowSize));
|
||||
}
|
||||
table = new(rowSize);
|
||||
TimeStamp = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user