From 5d77b35448990a62846b29ce96ceb0cf2faa20f7 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 19 七月 2024 16:12:32 +0800 Subject: [PATCH] 添加Tif值转存至Png --- SimuTools/FrmMain.cs | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/SimuTools/FrmMain.cs b/SimuTools/FrmMain.cs index 63e50df..62b2ed8 100644 --- a/SimuTools/FrmMain.cs +++ b/SimuTools/FrmMain.cs @@ -7,8 +7,6 @@ { public partial class FrmMain : Form { - private bool flag; - public FrmMain() { InitializeComponent(); @@ -109,10 +107,9 @@ return; } - if (flag) return; try { - flag = true; + this.btnRun.Enabled = false; LogOut.Info("寮�濮嬭繍琛� >>"); outPath = Path.Combine(outPath, serviceName); @@ -123,13 +120,13 @@ Tools.Handle.Run(terrainFile, waterPath, flowPath, outPath); - flag = false; + this.btnRun.Enabled = true; LogOut.Info("杩愯缁撴潫 <<"); MessageBox.Show("杩愯缁撴潫锛�", "鎻愮ず", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { - flag = false; + this.btnRun.Enabled = true; LogOut.Error(ex.StackTrace); ShowErr("杩愯鍑洪敊锛�" + ex.Message); } -- Gitblit v1.9.3