Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public VM_Player(string name, GameStates state, VM vm, bool isHost)
     : this(name, state, vm)
 {
     IsHost = isHost;
 }
Exemplo n.º 3
0
 private void SpeakerChoiceChanged(VM vm)
 {
     PropertyChanged.Notify(() => ResultLine);
 }