Convert custom WizardPage actions/events to existing ones
- Remove PageIsBecomingActive, prefer existing OnLoad - Remove PageIsBecomingInactive, prefer existing OnClosed - Rename BecomingActive action to PageLoad, used for inline defs - Rename BecomingInactive action to PageClose, used for inline defs - Fire PageLoad/PageClose from page base OnLoad/OnClosed
This commit is contained in:
parent
ec826abd39
commit
1b463ffaa7
15 changed files with 65 additions and 136 deletions
|
|
@ -63,7 +63,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
this.ShowWizardFinished();
|
||||
}
|
||||
|
||||
public override void PageIsBecomingActive()
|
||||
public override void OnLoad(EventArgs args)
|
||||
{
|
||||
if (printer.Settings.GetValue<bool>(SettingsKey.z_homes_to_max))
|
||||
{
|
||||
|
|
@ -72,7 +72,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
|
||||
pageWasActive = true;
|
||||
|
||||
base.PageIsBecomingActive();
|
||||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue