Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinForms: Handle MainForm changes #2598

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

cyanfish
Copy link
Contributor

This allows the former MainForm to be closed without the application shutting down.

Running with a swf.ApplicationContext with a form is equivalent to just running with the form (reference source), and allows that form to be changed later.

I'm pretty sure the MainForm.Loaded check is unnecessary as the form should always be loaded when it gets to this point of the Eto.Application.Run flow.

@cwensley
Copy link
Member

Awesome! Thanks for the contribution.

@cwensley cwensley merged commit 5b33292 into picoe:develop Dec 11, 2023
3 checks passed
@cwensley cwensley added this to the 2.8.3 milestone Dec 11, 2023
@cyanfish cyanfish deleted the wfmainform branch December 16, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants