예제 #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);
     }
 }
예제 #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;
        }