pushd
continuous-integration/drone/push Build is passing Details

test_old_branch
Jérémy Mouyon 1 year ago
parent ed05061476
commit 566f6c2e09

@ -24,7 +24,7 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
set
{
playerCells1 = value;
OnPropertyChanged(nameof(PlayerCells1));
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("PlayerCells1"));
}
}
public Gameboard()
@ -62,6 +62,7 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
game.PlaceTile(game.GetPlayingPlayer(), tiledrag!, x, y);
game.PlaceTileNotified -= Game_PlaceTileNotified;
PlayerCells1 = new ObservableCollection<Tile>(game.PlayerList[0].Tiles.ToList());
}
@ -70,10 +71,5 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
DisplayAlert("Tile place notified", args.Reason, "<3");
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public event PropertyChangedEventHandler? PropertyChanged;
}

@ -26,7 +26,7 @@
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
DropCommandParameter="{Binding .}" />
</Border.GestureRecognizers>
<Label Text="{Binding GetTile}" />
<Label Text="{Binding GetTile.Name}" />
</Border>
</DataTemplate>
</CollectionView.ItemTemplate>

Loading…
Cancel
Save