提高代码质量

This commit is contained in:
zsyg
2025-07-02 09:16:18 +08:00
committed by GitHub
parent 1539c665f0
commit 1c2bc713be

View File

@@ -50,7 +50,10 @@ namespace KortAppZ.Tools.Viewer
}
currentImage = ImageFileHandler.LoadImage(filePath);
pictureBox.Image = currentImage;
if (pictureBox != null)
{
pictureBox.Image = currentImage;
}
this.Text = $"图片查看 - {Path.GetFileName(filePath)}";
}
catch (Exception ex)