管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-07-18 0f522b742699f0d81f23adc4cf517205cdf3d45c
SimuTools/FrmMain.cs
@@ -87,11 +87,17 @@
        private void btnRun_Click(object sender, EventArgs e)
        {
            string serviceName = this.txtServiceName.Text.Trim();
            string terrainFile = this.txtTerrainPath.Text.Trim();
            string waterPath = this.txtWaterPath.Text.Trim();
            string flowPath = this.txtFlowPath.Text.Trim();
            string outPath = this.txtOutPath.Text.Trim();
            if (string.IsNullOrEmpty(serviceName))
            {
                ShowErr("服务名称,要求必填!");
                return;
            }
            if (!File.Exists(terrainFile))
            {
                ShowErr("地形文件,要求必须存在!");
@@ -109,10 +115,17 @@
                flag = true;
                LogOut.Info(">> 开始运行 >>");
                outPath = Path.Combine(outPath, serviceName);
                if (!Directory.Exists(outPath))
                {
                    Directory.CreateDirectory(outPath);
                }
                Tools.Handle.Run(terrainFile, waterPath, flowPath, outPath);
                LogOut.Info("<< 运行结束 <<");
                flag = false;
                LogOut.Info("<< 运行结束 <<");
                MessageBox.Show("运行结束!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {