Ejemplo n.º 1
0
        /// <summary>
        /// Main entry point for the application
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //Start processing the arguments
            CommandLineProcess clp = new CommandLineProcess(args);
            if (clp.ReadyForTranslation)
            {
                //Ok we have what we need, start the conversion
                Translate t = new Translate(clp.APIKey, clp.SourceLanguage, clp.SourcePath, clp.TargetLanguage, clp.TargetPath, clp.Service);
                t.Go();
            }

            //Console.ReadLine();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Main entry point for the application
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //Start processing the arguments
            CommandLineProcess clp = new CommandLineProcess(args);

            if (clp.ReadyForTranslation)
            {
                //Ok we have what we need, start the conversion
                Translate t = new Translate(clp.APIKey, clp.SourceLanguage, clp.SourcePath, clp.TargetLanguage, clp.TargetPath, clp.Service);
                t.Go();
            }

            //Console.ReadLine();
        }