Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CjangCjengh committed Aug 7, 2022
1 parent 2ea84f6 commit 14ffdfc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
21 changes: 6 additions & 15 deletions MoeGoe_GUI/MainWin.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using System.Threading;

namespace MoeGoe_GUI
{
Expand Down Expand Up @@ -150,7 +141,7 @@ private void Initialize_mode()
{
MatchCollection matches = Regex.Matches(match.Groups[1].Value,
"\"((?:(?:\\\\.)|[^\\\\\"])*)\"");
if(matches.Count > 0)
if (matches.Count > 0)
{
for (int i = 0; i < matches.Count; i++)
{
Expand All @@ -171,7 +162,7 @@ private void GetStart()
{
cmd = new CommandLine();
cmd.OutputHandler += Cmd_OutputHandler;
cmd.Write(EXEPATH);
cmd.Write("\"" + EXEPATH + "\"");
cmd.Write(MODELPATH);
cmd.Write(CONFIGPATH);
modeControl.Enabled = true;
Expand All @@ -180,7 +171,7 @@ private void GetStart()

private void Cmd_OutputHandler(CommandLine sender, string e)
{
Invoke(new Action(()=> consoleBox.Text += e));
Invoke(new Action(() => consoleBox.Text += e));
}

private void OpenOrigin_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -208,7 +199,7 @@ private bool IsFilled()
{
if (modeControl.SelectedIndex == 0)
{
if(textBox.Text.Length == 0)
if (textBox.Text.Length == 0)
{
MessageBox.Show("请输入文本!", "",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
Expand All @@ -230,7 +221,7 @@ private bool IsFilled()
MessageBoxButtons.OK, MessageBoxIcon.Warning);
return false;
}
if(originBox.SelectedIndex == -1)
if (originBox.SelectedIndex == -1)
{
MessageBox.Show("请选择原说话人!", "",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
Expand Down
5 changes: 1 addition & 4 deletions MoeGoe_GUI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using System.Windows.Forms;

namespace MoeGoe_GUI
{
Expand Down
1 change: 0 additions & 1 deletion MoeGoe_GUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 有关程序集的一般信息由以下
Expand Down

0 comments on commit 14ffdfc

Please sign in to comment.