public void SaveAsHDocument() { string path = dialogService.GetFileSavePath("Save Header Font File", "h", "Header File|*.h"); if (path == null) { return; } if (openFilePath == null) { openFilePath = path; } CurrentGlyphSet.SaveHFile(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); } }