Add AnyCommunicationStateChanged event

- Issue MatterHackers/MCCentral#5197
Disable sign-in widget while printing
This commit is contained in:
jlewin 2019-03-22 14:14:29 -07:00
parent 7a27e6ce7d
commit 014040276f

View file

@ -91,6 +91,8 @@ namespace MatterHackers.MatterControl.PrinterCommunication
/// </summary>
public class PrinterConnection : IDisposable
{
public static event EventHandler AnyCommunicationStateChanged;
public event EventHandler Disposed;
public event EventHandler TemporarilyHoldingTemp;
@ -595,6 +597,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
communicationState = value;
CommunicationStateChanged?.Invoke(this, null);
AnyCommunicationStateChanged?.Invoke(this, null);
}
}
}