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