Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("version is : {0}", strings.version);
            if(args.Count() == 0)
            {
                Console.WriteLine("Argument not defined, press any key to exit!");
                Console.ReadKey();
                return;
            }
            string sArg = args[0];
            WindowOp winOp = new WindowOp();
            bool bok = true;
            if(sArg == "e")
            {
                winOp.Eject();
                return;
            }

            int batchID = int.Parse(sArg);

            try
            {
                winOp.SelectLastBatch(batchID);
                winOp.ClickRun();
            }
            catch(Exception ex)
            {
                bok = false;
                Console.WriteLine(ex.Message);
                Console.WriteLine("Press any key to exit!");
                Console.ReadKey();
            }

            Folders.WriteResult(bok);
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("version is : {0}", strings.version);
            if (args.Count() == 0)
            {
                Console.WriteLine("Argument not defined, press any key to exit!");
                Console.ReadKey();
                return;
            }
            string   sArg  = args[0];
            WindowOp winOp = new WindowOp();
            bool     bok   = true;

            if (sArg == "e")
            {
                winOp.Eject();
                return;
            }


            int batchID = int.Parse(sArg);

            try
            {
                winOp.SelectLastBatch(batchID);
                winOp.ClickRun();
            }
            catch (Exception ex)
            {
                bok = false;
                Console.WriteLine(ex.Message);
                Console.WriteLine("Press any key to exit!");
                Console.ReadKey();
            }

            Folders.WriteResult(bok);
        }