Exemple #1
0
        public void NavigateToWord()
        {
            if (string.IsNullOrWhiteSpace(Model.SelectedWord))
            {
                return;
            }

            Model.GoogleTranslateAddress = "https://translate.google.com/#en/tr/" + Model.SelectedWord;

            Model.AudioDictionaryAddress = "https://www.seslisozluk.net/en/what-is-the-meaning-of-" + Model.SelectedWord + "/";

            Model.LongManWebBrowserAddress = "https://www.ldoceonline.com/dictionary/" + Model.SelectedWord;

            Model.ImageBrowserAddress = "www.google.com.tr/search?q=" + Model.SelectedWord + "&safe=off&source=lnms&tbm=isch";


            Model.LongManInitialJsScript = LongManScriptHelper.GetScript(Model.SelectedWord);

            //if (Model.SelectedWordEnToTrCache != null)
            //{
            //    foreach (var key in Model.SelectedWordEnToTrCache.Keys)
            //    {
            //        Model.Sample1En = key;
            //        Model.Sample1Tr = Model.SelectedWordEnToTrCache[key];
            //    }
            //}
        }
        public void TestMethod1()
        {
            var script = LongManScriptHelper.GetScript("Society");

            var words = new[] { "Table", "Card" };

            EnToTrCache.StartToInitializeCache(words);
        }