[ADDED] other canvas can be reset via an other canvas

This commit is contained in:
Lars
2020-10-23 21:04:14 +02:00
parent 8ca4efc296
commit 398ba1d5bd
3 changed files with 16 additions and 3 deletions

View File

@@ -100,7 +100,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());
}
@@ -193,7 +193,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()