/// <summary> /// Handles the Click event of the newToolStripMenuItem control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void newToolStripMenuItem_Click(object sender, EventArgs e) { using (var form = new NewProjectFileForm()) { if (form.ShowDialog(this) == DialogResult.OK) { LoadProjectFile(form.ProjectFilePath); } runButton.Enabled = true; } }