Ejemplo n.º 1
0
 /// <summary>
 /// Start program.
 /// </summary>
 /// <param name="configFilePath">
 /// Path to config file that contains program parametrs.
 /// </param>
 public static void Run(string configFilePath)
 {
     AutoFoto0 program = new AutoFoto0(configFilePath);
     if (program._configFile.GetBoolParam("DisplayTextMessages"))
         Console.WriteLine(_helloText);
     program.Run();
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine(_helloText);

            // Test command line arguments and start.
            if (args.Length != 1)
                Console.WriteLine("Usage :\n>AutoFoto0 <configFile>\n\n");
            else
            {
                try
                {
                    AutoFoto0 program = new AutoFoto0(args[0]);
                    program.Run();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }