Merge remote-tracking branch 'origin/master'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
fbcce2b5c8
@ -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);
|
||||
set => SetValue(NameplayerProperty, value);
|
||||
}
|
||||
public static readonly BindableProperty NameplayerProperty =
|
||||
BindableProperty.Create(nameof(Nameplayer), typeof(string), typeof(ScoreboardLine), default(string), propertyChanged: OnPlayerChanged);
|
||||
|
||||
private static void OnPlayerChanged(BindableObject bindable, object oldValue, object newValue)
|
||||
{
|
||||
var bin = (ScoreboardLine)bindable;
|
||||
bin.OnPropertyChanged(nameof(Nameplayer));
|
||||
public string Nameplayer
|
||||
{
|
||||
get => (string)GetValue(NameplayerProperty);
|
||||
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