mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: All refactor in DiscImageChef.Tests.Devices.
This commit is contained in:
@@ -52,9 +52,6 @@ namespace DiscImageChef.Tests.Devices
|
||||
|
||||
devices = devices.OrderBy(d => d.Path).ToArray();
|
||||
|
||||
int item;
|
||||
string strDev;
|
||||
|
||||
while(true)
|
||||
{
|
||||
System.Console.Clear();
|
||||
@@ -72,8 +69,8 @@ namespace DiscImageChef.Tests.Devices
|
||||
devices[i].Supported, i + 1);
|
||||
|
||||
DicConsole.Write("Please choose which drive to test (0 to exit): ");
|
||||
strDev = System.Console.ReadLine();
|
||||
if(!int.TryParse(strDev, out item))
|
||||
string strDev = System.Console.ReadLine();
|
||||
if(!int.TryParse(strDev, out int item))
|
||||
{
|
||||
DicConsole.WriteLine("Not a number. Press any key to continue...");
|
||||
System.Console.ReadKey();
|
||||
|
||||
Reference in New Issue
Block a user