private void btnAccept_Click(object sender, EventArgs e) { CreatingDatabase a = new CreatingDatabase(); a.ShowDialog(this); isUpdated = false; }
private void Dictionary_FormClosing(object sender, FormClosingEventArgs e) { if (isUpdated) { DialogResult dlrs = MessageBox.Show("Your dictionary has changed. Do you want to save your changes in database file before quitting?", "Confirm", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (dlrs == DialogResult.Yes) { CreatingDatabase a = new CreatingDatabase(); a.ShowDialog(this); } if (dlrs == DialogResult.Cancel) { e.Cancel = true; } } }