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 set
{ {
playerCells1 = value; playerCells1 = value;
OnPropertyChanged(nameof(PlayerCells1)); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("PlayerCells1"));
} }
} }
public Gameboard() public Gameboard()
@ -62,6 +62,7 @@ public partial class Gameboard : ContentPage, INotifyPropertyChanged
game.PlaceTile(game.GetPlayingPlayer(), tiledrag!, x, y); game.PlaceTile(game.GetPlayingPlayer(), tiledrag!, x, y);
game.PlaceTileNotified -= Game_PlaceTileNotified; 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"); DisplayAlert("Tile place notified", args.Reason, "<3");
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler? PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
} }

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

Loading…
Cancel
Save