diff --git a/App.xaml.cs b/App.xaml.cs index 167d1c8..36b640e 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -1,8 +1,4 @@ -using System.Configuration; -using System.Data; -using System.Windows; - -namespace Migrator +namespace Migrator { /// /// Interaction logic for App.xaml diff --git a/MainWindow.xaml b/MainWindow.xaml index ebbf6a6..be11937 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -22,7 +22,14 @@ + public static void ShowHelp() + { + + } } } diff --git a/ViewModels/Utils/StringUtils.cs b/ViewModels/Utils/StringUtils.cs index 384e86d..ad5f715 100644 --- a/ViewModels/Utils/StringUtils.cs +++ b/ViewModels/Utils/StringUtils.cs @@ -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 /// 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 + { + } } } diff --git a/ViewModels/Utils/VersionUtils.cs b/ViewModels/Utils/VersionUtils.cs index 43d88f2..6ef58bd 100644 --- a/ViewModels/Utils/VersionUtils.cs +++ b/ViewModels/Utils/VersionUtils.cs @@ -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 {