加入报错输入框,清理代码
This commit is contained in:
1 parent
56e17d0292
commit
5ee67609b7
16 files changed
+95
-210
No files matched your search
@@ -1,20 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Input;
|
||||
using System.Xml.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
|
||||
namespace H5MotaUpdate.ViewModels
|
||||
{
|
||||
@@ -151,5 +135,13 @@ namespace H5MotaUpdate.ViewModels
|
||||
MessageBox.Show("迁移" + fileName + $"文件出现错误:{e.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 打开readme文件
|
||||
/// </summary>
|
||||
public static void ShowHelp()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,6 @@
|
||||
using System;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace H5MotaUpdate.ViewModels
|
||||
{
|
||||
@@ -208,8 +200,9 @@ namespace H5MotaUpdate.ViewModels
|
||||
/// 将塔的地图尺寸写入libs/core.js
|
||||
/// <summary>
|
||||
public static void WriteMapWidth(string destFilePath, int width, int height)
|
||||
{
|
||||
try {
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
string tempFilePath = destFilePath + ".tmp";
|
||||
string fileContent = File.ReadAllText(destFilePath);
|
||||
@@ -219,8 +212,9 @@ namespace H5MotaUpdate.ViewModels
|
||||
File.Delete(destFilePath);
|
||||
File.Move(tempFilePath, destFilePath);
|
||||
}
|
||||
catch {
|
||||
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Input;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace H5MotaUpdate.ViewModels
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user