Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        public SwapCursor(IPanelDePonPlayAreaService playAreaService, Matrix matrix) : base(playAreaService, matrix)
        {
            InitializeComponent();
            this.BorderBrush     = Brushes.Pink;
            this.BorderThickness = new Thickness(1);

            Width  = CellSize << 1;
            Height = CellSize;
        }