Making print history clearable and update with new data

fixing warnings
This commit is contained in:
Lars Brubaker 2020-07-03 12:05:28 -07:00
parent 215e86eb5a
commit 78d4059c80
16 changed files with 447 additions and 247 deletions

View file

@ -36,8 +36,9 @@ namespace MatterHackers.MatterControl.PrintHistory
public class PrintHistoryData
{
public static readonly int RecordLimit = 20;
public RootedObjectEventHandler HistoryCleared = new RootedObjectEventHandler();
public bool ShowTimestamp;
public RootedObjectEventHandler HistoryCleared { get; private set; } = new RootedObjectEventHandler();
private static PrintHistoryData instance;
public static PrintHistoryData Instance
@ -48,6 +49,7 @@ namespace MatterHackers.MatterControl.PrintHistory
{
instance = new PrintHistoryData();
}
return instance;
}
}