..
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
3bd5625035
commit
b97c02db00
@ -1,38 +1,43 @@
|
|||||||
using QwirkleClassLibrary.Games;
|
|
||||||
using QwirkleClassLibrary.Players;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Qwirkle.Views;
|
|
||||||
|
|
||||||
public partial class ScoreboardLine : ContentView
|
|
||||||
{
|
|
||||||
|
|
||||||
public ScoreboardLine()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
BindingContext = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static readonly BindableProperty NameplayerProperty =
|
|
||||||
BindableProperty.Create(nameof(Nameplayer), typeof(string), typeof(ScoreboardLine), default(string), propertyChanged: OnPlayerChanged);
|
|
||||||
|
|
||||||
|
|
||||||
public string Nameplayer
|
namespace Qwirkle.Views
|
||||||
|
{
|
||||||
|
public partial class ScoreboardLine : ContentView
|
||||||
{
|
{
|
||||||
get => (string)GetValue(NameplayerProperty);
|
public static readonly BindableProperty NameplayerProperty =
|
||||||
set => SetValue(NameplayerProperty, value);
|
BindableProperty.Create(nameof(Nameplayer), typeof(string), typeof(ScoreboardLine), default(string), propertyChanged: OnPlayerChanged);
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnPlayerChanged(BindableObject bindable, object oldValue, object newValue)
|
public string Nameplayer
|
||||||
{
|
{
|
||||||
var bin = (ScoreboardLine)bindable;
|
get => (string)GetValue(NameplayerProperty);
|
||||||
bin.OnPropertyChanged(nameof(Nameplayer));
|
set => SetValue(NameplayerProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnPlayerChanged(BindableObject bindable, object oldValue, object newValue)
|
||||||
|
{
|
||||||
|
var bin = (ScoreboardLine)bindable;
|
||||||
|
bin.OnPropertyChanged(nameof(Nameplayer));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ScoreProperty =
|
||||||
|
BindableProperty.Create(nameof(Score), typeof(int), typeof(ScoreboardLine), default(int), propertyChanged: OnScoreChanged);
|
||||||
|
|
||||||
|
public int Score
|
||||||
|
{
|
||||||
|
get => (int)GetValue(ScoreProperty);
|
||||||
|
set => SetValue(ScoreProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnScoreChanged(BindableObject bindable, object oldValue, object newValue)
|
||||||
|
{
|
||||||
|
var bin = (ScoreboardLine)bindable;
|
||||||
|
bin.OnPropertyChanged(nameof(Score));
|
||||||
|
}
|
||||||
|
|
||||||
|
public ScoreboardLine()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in new issue