Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }