Skip to content

Commit

Permalink
GUI IO using ISyncConsoleWriter implement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deliay committed Jan 5, 2018
1 parent 40a44c9 commit 20870c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DefaultGUI/frmDefault.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace DefaultGUI
{
public partial class frmDefault : Form, ISyncIO, IDisposable
public partial class frmDefault : Form, ISyncConsoleWriter, IDisposable
{

[DllImport("user32.dll", SetLastError = true)]
Expand Down Expand Up @@ -248,7 +248,7 @@ private void cmdConsole_Click(object sender, EventArgs e)
string formName = Console.Title;
int h = FindWindow("ConsoleWindowClass", formName);
ShowWindow(h, 1);
IO.SetIO(new NConsoleWriter());
IO.SetIO(IO.DefaultIO);
DefaultGUI.InputFlag = false;
Visible = false;
}
Expand Down

0 comments on commit 20870c7

Please sign in to comment.