Commit df92db27 authored by mercury233's avatar mercury233

code normalization by JoyJ

parent 0294b860
......@@ -144,9 +144,9 @@ namespace ImgGen
for (int i = 1; i <= 9; i++)
{
if (i < 9)
bLinkNums[i - 1] = new Bitmap("./textures/link_" + i + ".png");
bLinkNums[i - 1] = new Bitmap($"./textures/link_{i}.png");
if (i == 5) continue;
bLinkMarkers[i - 1] = new Bitmap("./textures/link_marker_on_" + i + ".png");
bLinkMarkers[i - 1] = new Bitmap($"./textures/link_marker_on_{i}.png");
}
}
......
......@@ -39,9 +39,7 @@ namespace ImgGen
List<string> files = new List<string>();
files.AddRange(Directory.GetFiles("./pico", "*.png"));
files.AddRange(Directory.GetFiles("./pico", "*.jpg"));
bool generateLarge = System.Configuration.ConfigurationManager.AppSettings["GenerateLarge"] == "False" ? false : true; // true if AppSettings null
bool generateSmall = System.Configuration.ConfigurationManager.AppSettings["GenerateSmall"] == "True" ? true : false;
bool generateThumb = System.Configuration.ConfigurationManager.AppSettings["GenerateThumb"] == "True" ? true : false;
bool generateSmall = System.Configuration.ConfigurationManager.AppSettings["GenerateSmall"] == "True";
if (generateLarge)
Directory.CreateDirectory("./picn");
if (generateSmall)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment