public string GetTranscreateIconPath(Common.PathInfo pathInfo) { if (pathInfo == null) { return(null); } if (!File.Exists(pathInfo.ProjectIconFilePath)) { using (var fs = new FileStream(pathInfo.ProjectIconFilePath, FileMode.Create)) { PluginResources.sdl_transcreate_view.Save(fs); } } return(pathInfo.ProjectIconFilePath); }
public string GetBackTranslationIconPath(Common.PathInfo pathInfo) { if (pathInfo == null) { return(null); } if (!File.Exists(pathInfo.BackTranslationIconFilePath)) { using (var fs = new FileStream(pathInfo.BackTranslationIconFilePath, FileMode.Create)) { PluginResources.back_translation_small.Save(fs); } } return(pathInfo.BackTranslationIconFilePath); }