changed CommunicationStateChanged to EventHandler
This commit is contained in:
parent
75cec79256
commit
4bb93fcc19
18 changed files with 64 additions and 39 deletions
|
|
@ -91,7 +91,8 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
DialogWindow.ChangeToPage(new SetupStepComPortOne(printer));
|
||||
};
|
||||
|
||||
printer.Connection.CommunicationStateChanged.RegisterEvent(onPrinterStatusChanged, ref unregisterEvents);
|
||||
printer.Connection.CommunicationStateChanged += onPrinterStatusChanged;
|
||||
this.Closed += (s, e) => printer.Connection.CommunicationStateChanged -= onPrinterStatusChanged;
|
||||
|
||||
this.AddPageAction(nextButton);
|
||||
this.AddPageAction(backButton);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue