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.
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.