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); }
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); } }