Пример #1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Test the SL900A Set SFE Parameters function in the Mercury API");
     if (1 > args.Length)
     {
         Usage();
     }
     else
     {
         for (int nextarg = 1; nextarg < args.Length; nextarg++)
         {
             string arg = args[nextarg];
             if (arg.Equals("--ant"))
             {
                 if (null != antennaList)
                 {
                     Console.WriteLine("Duplicate argument: --ant specified more than once");
                     Usage();
                 }
                 antennaList = ParseAntennaList(args, nextarg);
                 nextarg++;
             }
             else
             {
                 Console.WriteLine("Argument {0}:\"{1}\" is not recognized", nextarg, arg);
                 Usage();
             }
         }
         //Create the test object
         SL900ASetSFEParametersTest test = new SL900ASetSFEParametersTest();
         //Pass the reader uri to the object
         test.run(args[0]);
     }
 }
Пример #2
0
 static void Main(string[] args)
 {
     Console.WriteLine("Test the SL900A Set SFE Parameters function in the Mercury API");
     if (args.Length != 1)
     {
         //If the user did not supply the reader uri command arg, display this message
         Console.WriteLine("Must provide reader uri");
         Console.WriteLine("Sl900ASetSFEParametersTest.exe [reader]");
     }
     else
     {
         //Create the test object
         SL900ASetSFEParametersTest test = new SL900ASetSFEParametersTest();
         //Pass the reader uri to the object
         test.run(args[0]);
     }
 }