/// <summary>
        ///     Save data.
        /// </summary>
        /// <param name="filePath">
        ///     Path to the output file
        /// </param>
        public void SaveAs()
        {
            String      newFilePath = this.mDocumentPath;
            FrameWindow frameWindow = Application.OpenForms[0] as FrameWindow;

            if (frameWindow.GetFilePath(ref newFilePath))
            {
                SaveNewDocument(newFilePath);
            }
        }
        /// <summary>
        ///     Close the current document.
        /// </summary>
        /// <returns>
        ///     Returns <c>true</c> if the document was closed or <c>false</c> if the user cancelled the close operation.
        /// </returns>
        public Boolean Close()
        {
            if (this.IsModified)
            {
                FrameWindow frameWindow = Application.OpenForms[0] as FrameWindow;
                if (frameWindow != null)
                {
                    Boolean result = frameWindow.QueryCanClose();
                    if (result == true)
                    {
                        CloseDocument();
                    }
                    return(result);
                }
            }

            CloseDocument();
            return(true);
        }