public bool lastChanceToSave(bool forceSave) { bool ret = false; if (dictionaryDataSet.HasChanges()) { if (forceSave || Project.YesNoBox(this.ParentForm, "You've changed the dictionary, want to save?")) { saveData(); ret = true; } else { dictionaryDataSet.AcceptChanges(); } } return(ret); }