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); }
public Diagnostics(Edio edio) { this.edio = edio; }
public Usbio(Edio edio) { this.edio = edio; }