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 fc9d048 commit 7f7d495
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions WindowsFormsApp1/WindowsFormsApp1/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -925,14 +925,20 @@ private void button11_Click(object sender, EventArgs e)
{
if (_ImageView == null) _ImageView = new ImageView();
_ImageView.form1 = this.form1;
string file = "tmp_deepARprediction1.png";
if (!train_mode)

string filename = "";
if (train_mode)
{
filename = "tmp_deepARprediction1_" + trackBar1.Value.ToString() + ".png";
}
else
{
file = "tmp_deepARprediction1.png";
filename = "tmp_deepARprediction5_" + trackBar1.Value.ToString() + ".png";
}
if (System.IO.File.Exists(file))

if (System.IO.File.Exists(filename))
{
_ImageView.pictureBox1.ImageLocation = file;
_ImageView.pictureBox1.Image = CreateImage(filename);
_ImageView.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
_ImageView.pictureBox1.Dock = DockStyle.Fill;
_ImageView.Show();
Expand Down

0 comments on commit 7f7d495

Please sign in to comment.