Beispiel #1
0
 protected string PortSearch(string device)
 {
     switch (device) {
     case "VX805XPI":
     case "VX805XPI_MERCURY_E2E":
         return ComPortUtility.FindComPort("Verifone");
     case "INGENICOISC250":
     case "INGENICOISC250_MERCURY_E2E":
     case "INGENICOISC250_RAPIDCONNECT_E2E":
         return ComPortUtility.FindComPort("Ingenico");
     default:
         return "";
     }
 }
Beispiel #2
0
    public static int Main(string[] args)
    {
        string portID = "Ingenico";

        if (args.Length > 0 && args[0].Length > 0)
        {
            portID = args[0];
        }

        string found = ComPortUtility.FindComPort(portID);

        if (found == "")
        {
            found = "No matching device found";
        }

        Console.WriteLine(found);

        return(0);
    }