prompt to save if closing form and changes have been made
This commit is contained in:
parent
03e5724a25
commit
03ab2781ad
@ -371,7 +371,14 @@ namespace SpriteLibrary
|
|||||||
|
|
||||||
private void SpriteEntryForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void SpriteEntryForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
myDatabase.Save(); //try saving the file
|
if (PromptToApplyChangesAndContinue())
|
||||||
|
{
|
||||||
|
myDatabase.Save(); //try saving the file
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
e.Cancel = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pbImageField_MouseMove(object sender, MouseEventArgs e)
|
private void pbImageField_MouseMove(object sender, MouseEventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user