Exemple #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            ProgramConsole pc;

            switch (args.Length)
            {
            case 0:
                pc = new ProgramConsole();
                pc.getData();
                break;

            case 1:
                pc = new ProgramConsole(args[0]);
                pc.getData();
                break;

            case 2:
                pc = new ProgramConsole(args[0], args[1]);
                pc.getData();
                break;

            case 3:
                pc = new ProgramConsole(args[0], args[1], args[2]);
                pc.getData();
                break;
            }
        }
Exemple #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            ProgramConsole pc;

            switch (args.Length)
            {
            case 0:
                pc = new ProgramConsole();
                pc.getData();
                break;

            case 1:
                int days = Int16.Parse(args[0]);
                pc = new ProgramConsole(days);
                pc.getData();
                break;

            case 2:
                pc = new ProgramConsole();
                pc.getData(args[0], args[1]);
                break;
            }
        }