Commit 7d5b5f9d authored by tr's avatar tr

1、数据库开发工具:工具类优化

parent 7dd0be7c
No preview for this file type
No preview for this file type
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
......@@ -43,6 +44,26 @@ namespace Tools.MyUtils
/// </summary>
public static string TempPath => $@"{Application.StartupPath}\temp";
#endregion
#region 打开文件
/// <summary>
/// 打开指定文件
/// </summary>
/// <param name="fileName">文件名称</param>
public static void OpenFile(string fileName)
{
Process.Start(fileName);
}
/// <summary>
/// 用记事本打开指定文件
/// </summary>
/// <param name="fileName">文件名称</param>
public static void OpenFileWithNotepad(string fileName)
{
Process.Start("notepad.exe", fileName);
}
#endregion
/// <summary>
......
......@@ -242,7 +242,7 @@ namespace Tools.UI
//执行SQL
this._db.ExecNonSql(this._link, new List<string> { sql });
Utils.Tip("Sql生成并执行成功!");
//Process.Start(sqlFileName);
Utils.OpenFileWithNotepad(sqlFileName);
}
catch (Exception ex)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment