IfcDoc.FormEdit.PromptSave C# (CSharp) Method

PromptSave() private method

Prompts to save if file has been modified.
private PromptSave ( ) : bool
return bool
        private bool PromptSave()
        {
            if (this.m_modified)
            {
                DialogResult res = MessageBox.Show(this, "Do you want to save changes?", "IFC Documentation Generator", MessageBoxButtons.YesNoCancel);
                switch (res)
                {
                    case DialogResult.Yes:
                        toolStripMenuItemFileSave_Click(this, EventArgs.Empty);
                        return true;

                    case DialogResult.No:
                        return true;

                    case DialogResult.Cancel:
                        return false;
                }
            }

            return true;
        }
FormEdit