changed CommunicationStateChanged to EventHandler
This commit is contained in:
parent
75cec79256
commit
4bb93fcc19
18 changed files with 64 additions and 39 deletions
|
|
@ -53,7 +53,8 @@ namespace MatterHackers.MatterControl
|
|||
this.AddPageAction(nextButton);
|
||||
|
||||
// Register for connection notifications
|
||||
printer.Connection.CommunicationStateChanged.RegisterEvent(ConnectionStatusChanged, ref unregisterEvents);
|
||||
printer.Connection.CommunicationStateChanged += ConnectionStatusChanged;
|
||||
this.Closed += (s, e) => printer.Connection.CommunicationStateChanged -= ConnectionStatusChanged;
|
||||
}
|
||||
|
||||
public void ConnectionStatusChanged(object test, EventArgs args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue