/// <summary> /// moves the ornaments /// </summary> /// <param name="ornament">the given ornament</param> public void VisitOrnament(Ornament ornament) { ornament.GetComponent().Accept(this); Vector x = ornament.GetVector(ornament.Position); Canvas.SetTop(ornament.TextBlock, x.Y); Canvas.SetLeft(ornament.TextBlock, x.X); }
public void VisitOrnament(Ornament ornament) { ornament.TextBlock.Text = ornament.Name.ToString(); Vector x = ornament.GetVector(ornament.Position); Canvas.SetTop(ornament.TextBlock, x.Y); Canvas.SetLeft(ornament.TextBlock, x.X); ornament.GetComponent().Accept(this); MainWindow.AppWindow.PutOnScreen(ornament.TextBlock); }