Skip to content

Commit

Permalink
Update Form1.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanaxen committed Aug 13, 2020
1 parent 7f7d495 commit 2a9b253
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions WindowsFormsApp1/WindowsFormsApp1/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,10 @@ private void button1_Click(object sender, EventArgs e)

System.IO.Directory.SetCurrentDirectory(wrkdir);

for (int i = 0; i < listBox1.SelectedIndices.Count; i++)
for (int i = 0; i < 10000; i++)
{
if (System.IO.File.Exists("tmp_deepARprediction1_"+i.ToString()+".png")) System.IO.File.Delete("tmp_deepARprediction1_"+i.ToString()+".png");
if (System.IO.File.Exists("tmp_deepARprediction1_" + i.ToString() + ".png")) System.IO.File.Delete("tmp_deepARprediction1_" + i.ToString() + ".png");
else break;
}
pictureBox1.Image = null;

Expand Down Expand Up @@ -540,9 +541,10 @@ private void button4_Click(object sender, EventArgs e)
plot_step = (int)numericUpDown1.Value;

System.IO.Directory.SetCurrentDirectory(wrkdir);
for (int i = 0; i < listBox1.SelectedIndices.Count; i++)
for (int i = 0; i < 10000; i++)
{
if (System.IO.File.Exists("tmp_deepARprediction5_" + i.ToString() + ".png")) System.IO.File.Delete("tmp_deepARprediction5_" + i.ToString() + ".png");
else break;
}
pictureBox1.Image = null;

Expand Down Expand Up @@ -1294,9 +1296,10 @@ private void button14_Click(object sender, EventArgs e)
button6_Click(sender, e);

System.IO.Directory.SetCurrentDirectory(wrkdir);
for (int i = 0; i < listBox1.SelectedIndices.Count; i++)
for (int i = 0; i < 10000; i++)
{
if (System.IO.File.Exists("tmp_deepARprediction1_" + i.ToString() + ".png")) System.IO.File.Delete("tmp_deepARprediction1_" + i.ToString() + ".png");
else break;
}

if (System.IO.File.Exists("tmp_deepARprediction2.png")) System.IO.File.Delete("tmp_deepARprediction2.png");
Expand Down Expand Up @@ -1410,9 +1413,10 @@ private void button15_Click(object sender, EventArgs e)
button6_Click(sender, e);

System.IO.Directory.SetCurrentDirectory(wrkdir);
for (int i = 0; i < listBox1.SelectedIndices.Count; i++)
for (int i = 0; i < 10000; i++)
{
if (System.IO.File.Exists("tmp_deepARprediction5_" + i.ToString() + ".png")) System.IO.File.Delete("tmp_deepARprediction5_" + i.ToString() + ".png");
else break;
}

if (System.IO.File.Exists("tmp_deepARprediction6.png")) System.IO.File.Delete("tmp_deepARprediction6.png");
Expand Down

0 comments on commit 2a9b253

Please sign in to comment.