Skip to content

Commit

Permalink
Change some designs to fit MVVM and Task mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
x-stars committed Dec 8, 2019
1 parent fdc2ffb commit 0d8e270
Show file tree
Hide file tree
Showing 15 changed files with 387 additions and 745 deletions.
2 changes: 1 addition & 1 deletion YandereLinks/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace XstarS.YandereLinks
{
/// <summary>
/// App.xaml 的交互逻辑
/// 表示应用程序的入口点
/// </summary>
public partial class App : Application
{
Expand Down
191 changes: 0 additions & 191 deletions YandereLinks/Commands/CommandBase.cs

This file was deleted.

149 changes: 0 additions & 149 deletions YandereLinks/Commands/DelegateCommand.cs

This file was deleted.

6 changes: 3 additions & 3 deletions YandereLinks/Helpers/ConsoleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void Show()
if (!ConsoleManager.HasConsole)
{
ConsoleManager.SafeNativeMethods.AllocConsole();
ConsoleManager.InvalidateStdOutError();
ConsoleManager.InitializeStdOutError();
}
}

Expand Down Expand Up @@ -91,9 +91,9 @@ public static void Toggle()
}

/// <summary>
/// 释放 <see cref="Console"/> 的标准输出流和错误流,以触发其重新初始化
/// 重新初始化 <see cref="Console"/> 的标准输出流和错误流。
/// </summary>
private static void InvalidateStdOutError()
private static void InitializeStdOutError()
{
var t_Console = typeof(Console);
var staticNoPublic = BindingFlags.Static | BindingFlags.NonPublic;
Expand Down
Loading

0 comments on commit 0d8e270

Please sign in to comment.