Ejemplo n.º 1
0
        public ResultScreenViewModel(byte[] imageMemory, string languageOCR = "Auto")
        {
            translateLanguageCode = Settings.ReadSettings("General", "TransLang");
            TargetLang            = LanguageDictionary.GetTranslateLanguageByValue(translateLanguageCode);

            ORCLang = languageOCR != null ? languageOCR : "auto";

            ParseImageAndTranslate(imageMemory);

            Timer.Elapsed += Timer_Elapsed;
        }
Ejemplo n.º 2
0
 public ResultScreenViewModel()
 {
     translateLanguageCode = Settings.ReadSettings("General", "TransLang");
     TargetLang            = LanguageDictionary.GetTranslateLanguageByValue(translateLanguageCode);
     Timer.Elapsed        += Timer_Elapsed;
 }