private void generateToolStripMenuItem_Click(object sender, EventArgs e) { Save(); GenerationDialog dialog = new GenerationDialog(resourceDirectory); dialog.ShowDialog(this); dialog.Dispose(); }