You just need to make CurrentWorld
public
or internal
on the MainForm
class. Honestly, you're doing everything else right!
UPDATE: also make sure that the MainForm
private field declared in Form1
is of the type MainForm
and not just Form
. So, change the constructor a tidge too:
public ProjectWizard(MainForm form)