private Form1_FormClosing ( object sender, |
||
sender | object | |
e | ||
return | void |
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (collectionDirty && (MessageBox.Show("Your Creature Collection has been modified since it was last saved, are you sure you want to discard your changes and quit without saving?", "Discard Changes?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.No))
e.Cancel = true;
}