private void MainWindow_Resize(object sender, EventArgs e) { MyGrid.Children.Clear(); GridTool.Draw(MyGrid); DrawPath(MyGrid); MyCircle.Children.Clear(); GridTool.Paint(MyCircle); }
private void OnDrawPath(string msg, object extra = null) { MyGrid.Children.Clear(); GridTool.Draw(MyGrid); DrawPath(MyGrid); MyCircle.Children.Clear(); GridTool.Paint(MyCircle); }