private void button1_Click(object sender, EventArgs e) { NewVDF newVDF = new NewVDF(this, recentItems); newVDF.Show(); Hide(); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Are you sure you want to close?", "Editor closing", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { NewVDF newVDF = new NewVDF(menuForm, recentItems); newVDF.Show(); Close(); } }