{
if((prfMain==null)||(!prfMain.isModifyed()))
return true;
else
{
YesNoCancelMessage ynmcMessage=new YesNoCancelMessage(this, virtualcache.Main.ApplicationName, "<html>The file was modifyed. Would you like to save changes before exit?</html>", true);
ynmcMessage.setVisible(true);
if(ynmcMessage.getResult()==YesNoCancelMessage.CANCEL)
return false;
else if(ynmcMessage.getResult()==YesNoCancelMessage.YES)
{
slSave.actionPerformed(new ActionEvent(miSave, 1, "", 1));
}
return true;
}