IsModified() public méthode

public IsModified ( ) : bool
Résultat bool
Exemple #1
0
        private void QuitPrompt()
        {
            Utils.Log("Launching QuitPrompt()");
            bool         Modified = worldmap.IsModified();
            DialogResult ret      = DialogResult.Abort;

            if (Modified)
            {
                ret = Message.Show("Are you really sure that you want to exit? If you havn't saved your work, it will be lost.", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            }
            if (ret == DialogResult.Yes || !Modified)
            {
                FOCommon.Cache.Cache.Save(".\\Cache.dat");
                SaveUISettings();
                Config.Save();
                Environment.Exit(0);
            }
        }