Пример #1
0
        public void SaveAsMCMDocument()
        {
            string path = dialogService.GetFileSavePath("Save MCM Font File", "mcm", "mcm File|*.mcm");

            if (path == null)
            {
                return;
            }

            if (openFilePath == null)
            {
                openFilePath = path;
            }

            CurrentGlyphSet.SaveMcmFile(path);
        }
Пример #2
0
        public void SaveDocument()
        {
            if (openFilePath == null)
            {
                SaveAsMCMDocument();
                return;
            }

            if (Path.GetExtension(openFilePath) == ".mcm")
            {
                CurrentGlyphSet.SaveMcmFile(openFilePath);
            }
            else if (Path.GetExtension(openFilePath) == ".h")
            {
                CurrentGlyphSet.SaveHFile(openFilePath);
            }
        }