Skip to content

Commit c2e7c06

Browse files
committed
Add code for source and target directories opening
1 parent ba1c72b commit c2e7c06

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

SaveWin10Pictures/Program.cs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,23 @@ private static void Main()
118118
display("Press T to open Target directory:");
119119
consoleKeyPressed = Console.ReadKey();
120120
// Check every 24 hours
121-
Thread.Sleep(5000);
122-
121+
//Thread.Sleep(5000);
122+
if (consoleKeyPressed.ToString() == "Q")
123+
{
124+
break;
125+
}
126+
127+
if (consoleKeyPressed.ToString() == "S")
128+
{
129+
string sourceDirectory = "";
130+
131+
}
132+
133+
if (consoleKeyPressed.ToString() == "T")
134+
{
135+
string targetDirectory = "";
136+
}
137+
123138
} while (consoleKeyPressed.Key != ConsoleKey.Q);
124139

125140
Console.ForegroundColor = ConsoleColor.Yellow;

0 commit comments

Comments
 (0)