/// <summary> /// This method DELETES the file. /// Used (enabled) only when started from VS designer /// (i.e. we would be deleting a temp file). /// </summary> private void DoCancelAndExit() { AppUtils.DeleteFile(_fileName); // prevent saving file in MainForm_FormClosing() _dirty = false; Close(); }