public bool SaveDocumentAs(string file, bool compressed)
        {
            if (!FileSerializer.SaveToFile(CurrentDocument.GetModel(), file, compressed))
            {
                return(false);
            }

            FilePath = file;
            IsDirty  = false;
            return(true);
        }