コード例 #1
0
ファイル: AutoFoto0.cs プロジェクト: poles-p/SARA
 /// <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();
 }
コード例 #2
0
ファイル: AutoFoto0.cs プロジェクト: poles-p/SARA
        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);
                }
            }
        }