示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            NewVDF newVDF = new NewVDF(this, recentItems);

            newVDF.Show();
            Hide();
        }
示例#2
0
        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();
            }
        }