add screenshots folder if not exists

This commit is contained in:
Alexander Eckart committed 2012-02-22 17:22:47 +01:00
1 parent 6f3a60df3a
commit 175ae1963c
3 files changed
+6

No files matched your search

+2
View File
@@ -461,6 +461,8 @@ namespace Vocaluxe.Lib.Draw
{
string file = "Screenshot_";
string path = Path.Combine(Environment.CurrentDirectory, CSettings.sFolderScreenshots);
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
int i = 0;
while (File.Exists(Path.Combine(path, file + i.ToString("00000") + ".bmp")))
+2
View File
@@ -300,6 +300,8 @@ namespace Vocaluxe.Lib.Draw
{
string file = "Screenshot_";
string path = Path.Combine(Environment.CurrentDirectory, CSettings.sFolderScreenshots);
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
int i = 0;
while (File.Exists(Path.Combine(path, file + i.ToString("00000") + ".png")))
+2
View File
@@ -556,6 +556,8 @@ namespace Vocaluxe.Lib.Draw
{
string file = "Screenshot_";
string path = Path.Combine(Environment.CurrentDirectory, CSettings.sFolderScreenshots);
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
int i = 0;
while (File.Exists(Path.Combine(path, file + i.ToString("00000") + ".bmp")))