Fixed the Macros window to cancel on user closes with the X windows button.
Put cancel into max length and temp stream Made close function take a bool if the system did it Moved To EventHandler<> in GuiWidget Made a ClosedEventsArgs
This commit is contained in:
parent
3d93b6e857
commit
8134b3f450
82 changed files with 191 additions and 127 deletions
|
|
@ -393,7 +393,7 @@ namespace MatterHackers.MatterControl.EeProm
|
|||
UiThread.RunOnIdle(Close);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
public override void OnClosed(ClosedEventArgs e)
|
||||
{
|
||||
unregisterEvents?.Invoke(this, null);
|
||||
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ namespace MatterHackers.MatterControl.EeProm
|
|||
buttonBar.AddChild(spacer);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
public override void OnClosed(ClosedEventArgs e)
|
||||
{
|
||||
if (unregisterEvents != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue