private Main main = null;

private void buttonInit_Click(object sender, EventArgs e)
{
    if (main != null)
    {
        Dialogs.Stop("Main is al geïnitialiseerd!");
        return;
    }
    try
    {
        main = new Main(@"M:\Test\Mercator", null, "Guy", "guy");
    }
    catch (Exception ex)
    {
        Dialogs.Stop(ex.Message);
    }
    if (main != null)
        Dialogs.Stop("Main correct geïnitialiseerd!");
}