This commit is contained in:
Sem van der Hoeven
2020-10-23 21:04:29 +02:00
3 changed files with 16 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ namespace Client.ViewModels
private void CanvasResetLocal()
{
this.window.CanvasForPaint.Children.Clear();
data.Client.SendMessage(JSONConvert.GetMessageToSend(JSONConvert.CANVAS, JSONConvert.CANVAS_RESET));
data.Client.SendMessage(JSONConvert.ConstructCanvasReset());
}
@@ -194,7 +194,11 @@ namespace Client.ViewModels
private void CanvasResetData()
{
this.window.CanvasForPaint.Children.Clear();
Application.Current.Dispatcher.Invoke(delegate
{
this.window.CanvasForPaint.Children.Clear();
});
}
private void ChatBox_KeyDown()