prompt to save if closing form and changes have been made
This commit is contained in:
parent
03e5724a25
commit
03ab2781ad
@ -370,9 +370,16 @@ namespace SpriteLibrary
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void SpriteEntryForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void SpriteEntryForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
if (PromptToApplyChangesAndContinue())
|
||||||
{
|
{
|
||||||
myDatabase.Save(); //try saving the file
|
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