private static void _OpenDrive(string drive) { _CloseDrive(); _device = new PhisonDevice(drive[0]); _device.Open(); }
private static void _CloseDrive() { if (_device != null) { _device.Close(); _device = null; } }