public void Update() { if (!Matrix.Equals(_playAreaService.CursorStatus.Matrix)) { Matrix = _playAreaService.CursorStatus.Matrix; Canvas.SetBottom(this, CellSize * Matrix.Row); Canvas.SetLeft(this, CellSize * Matrix.Column); } }
public SwapCursor(IPanelDePonPlayAreaService playAreaService, Matrix matrix) : base(playAreaService, matrix) { InitializeComponent(); this.BorderBrush = Brushes.Pink; this.BorderThickness = new Thickness(1); Width = CellSize << 1; Height = CellSize; }