public VM_Player(string name, GameStates state, VM vm) { Name = name; State = state; if (vm != null) { _vm = vm; //_vm.SubscribeToChange(() => _vm.CurrentGame.CurrentRound.Speaker, SpeakerChanged); //_vm.SubscribeToChange(() => _vm.CurrentGame.CurrentRound.Choice, SpeakerChoiceChanged); _vm.Phones.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(Phones_CollectionChanged); } }
public VM_Player(string name, GameStates state, VM vm, bool isHost) : this(name, state, vm) { IsHost = isHost; }
private void SpeakerChoiceChanged(VM vm) { PropertyChanged.Notify(() => ResultLine); }