|
@@ -45,11 +45,11 @@ public class ServerConsole : Console
|
|
|
};
|
|
|
_client.Connected += (o, args) =>
|
|
|
{
|
|
|
- ConsoleControl.Enabled = true;
|
|
|
+ Dispatcher.BeginInvoke(() => ConsoleControl.Enabled = true);
|
|
|
};
|
|
|
_client.Disconnected += (o, args) =>
|
|
|
{
|
|
|
- ConsoleControl.Enabled = false;
|
|
|
+ Dispatcher.BeginInvoke(() => ConsoleControl.Enabled = false);
|
|
|
|
|
|
if (RefreshTimer == null)
|
|
|
{
|