示例#1
0
        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);
        }