Example #1
0
        static void edlink(string[] args)
        {
            edio = new Edio();
            usb  = new Usbio(edio);
            Console.WriteLine("EverDrive found at " + edio.PortName);
            Console.WriteLine("EDIO status: " + edio.getStatus().ToString("X4"));
            Console.WriteLine("");


            bool force_app_mode = true;

            for (int i = 0; i < args.Length; i++)
            {
                if (args[i].Equals("-appmode"))
                {
                    force_app_mode = false;
                }
                if (args[i].Equals("-sermode"))
                {
                    force_app_mode = false;
                }
            }
            if (force_app_mode)
            {
                edio.exitServiceMode();
            }


            if (args.Length == 0)
            {
                edio.getConfig().printFull();
                Console.WriteLine("");
                printState();
                Console.WriteLine("");
                edio.getPort().Close();
                Console.WriteLine("Press any key");
                Console.ReadKey();
                return;
            }


            cmdProcessor(args);
        }
Example #2
0
 public Diagnostics(Edio edio)
 {
     this.edio = edio;
 }
Example #3
0
 public Usbio(Edio edio)
 {
     this.edio = edio;
 }