Move constructors up, properties down

This commit is contained in:
jlewin 2019-04-02 14:07:16 -07:00
parent 489ad473e1
commit d0a23570bf
2 changed files with 42 additions and 36 deletions

View file

@ -1,5 +1,5 @@
/*
Copyright (c) 2014, Lars Brubaker
Copyright (c) 2019, Lars Brubaker, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
@ -27,11 +27,11 @@ of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
using System;
using System.Collections.Generic;
using MatterHackers.Agg;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.PrinterCommunication;
using System;
using System.Collections.Generic;
namespace MatterHackers.MatterControl
{
@ -39,9 +39,6 @@ namespace MatterHackers.MatterControl
{
private static readonly bool Is32Bit = IntPtr.Size == 4;
public List<(string line, bool output)> PrinterLines = new List<(string line, bool output)>();
public event EventHandler<(string line, bool output)> HasChanged;
private int maxLinesToBuffer = int.MaxValue - 1;
public TerminalLog(PrinterConnection printerConnection)
@ -59,6 +56,10 @@ namespace MatterHackers.MatterControl
}
}
public event EventHandler<(string line, bool output)> HasChanged;
public List<(string line, bool output)> PrinterLines { get; } = new List<(string line, bool output)>();
private void OnHasChanged((string line, bool output) lineData)
{
HasChanged?.Invoke(this, lineData);