Infört Observable Property överallt, där tillämpligt
This commit is contained in:
@ -62,63 +62,6 @@ public partial class RoundStartingViewModel : ObservableObject
|
||||
private ObservableCollection<Participant> participantList = new();
|
||||
|
||||
|
||||
#region commented out
|
||||
|
||||
//public ObservableCollection<RoundBuilderElement> RoundElements
|
||||
//{
|
||||
// get { return _roundElements; }
|
||||
// set
|
||||
// {
|
||||
// _roundElements = value;
|
||||
// OnPropertyChanged(nameof(RoundElements));
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
//public Participant SelectedItem
|
||||
//{
|
||||
// get => _selectedItem;
|
||||
// set
|
||||
// {
|
||||
// if (_selectedItem != value)
|
||||
// {
|
||||
|
||||
// _selectedItem = value;
|
||||
// OnPropertyChanged(nameof(SelectedItem));
|
||||
// OnItemSelected(value); // Metod som triggas vid val
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
//public GameRound? GameRoundObject
|
||||
//{
|
||||
// get { return _GameRoundObject; }
|
||||
// set
|
||||
// {
|
||||
// _GameRoundObject = value;
|
||||
// OnPropertyChanged(nameof(GameRoundObject));
|
||||
// }
|
||||
//}
|
||||
|
||||
//public ObservableCollection<RoundBuilderGroup> GameRoundList
|
||||
//{
|
||||
// get { return _GameRoundList; }
|
||||
// set
|
||||
// {
|
||||
// _GameRoundList = value;
|
||||
// OnPropertyChanged(nameof(GameRoundList));
|
||||
// }
|
||||
//}
|
||||
//public ObservableCollection<Participant> ParticipantList
|
||||
//{
|
||||
// get { return _ParticipantList; }
|
||||
// set
|
||||
// {
|
||||
// _ParticipantList = value;
|
||||
// OnPropertyChanged(nameof(ParticipantList));
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
private void OnItemSelected(Participant item)
|
||||
{
|
||||
if (RoundElements.Count == 0)
|
||||
|
||||
Reference in New Issue
Block a user