Exemple #1
0
        /* 1- Add a service reference
         * 2- Advance
         * 3- Add web reference, paste the link to the service.
         */
        static void Main(string[] args)
        {
            Music        prxm          = new Music();
            Lyrics       prxl          = new Lyrics();
            MyTranslator prxTranslator = new MyTranslator();

            Console.WriteLine("Qual o numero da musica");
            int number = Int32.Parse(Console.ReadLine());

            MusicPair music = prxm.getMusicByNumber(number);

            Console.WriteLine("Author: {0}", music.autor);
            Console.WriteLine("Song: {0} \n", music.song);

            var lyrics = prxl.getLyrics(music.autor, music.song);

            Console.WriteLine(lyrics);

            var translated = prxTranslator.Translate(lyrics, "en", "pt");

            Console.WriteLine(translated);

            Console.ReadLine();
        }
Exemple #2
0
 public MainViewModel()
 {
     MyTranslator = MyTranslator.Load();
 }