//-----------------------------------------------------------------------------// private void saveToolStripMenuItem_Click(object sender, EventArgs e) { FormSaveFile formSaveFile = new FormSaveFile(); formSaveFile.Show(); }
//-------------------------------------------------------------------------// private void openToolStripMenuItem_Click(object sender, EventArgs e) { FormLoadFile formLoadFile = new FormLoadFile(); formLoadFile.Show(); if (MessageBox.Show("Do you want to save current file?", "Message", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { FormSaveFile formSaveFile = new FormSaveFile(); formSaveFile.Show(); } }