예제 #1
0
 private void ClientModelChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName.Equals("Connected"))
     {
         NotifyPropertyChanged("Connected");
         ConnectCommand.RaiseCanExecuteChanged();
         SendCommand.RaiseCanExecuteChanged();
         China2.RaiseCanExecuteChanged();
         BingBong.RaiseCanExecuteChanged();
         Wrong.RaiseCanExecuteChanged();
         GreatWall.RaiseCanExecuteChanged();
         ReallyRich.RaiseCanExecuteChanged();
         FakeNews.RaiseCanExecuteChanged();
         BuildWall.RaiseCanExecuteChanged();
     }
     else if (e.PropertyName.Equals("MessageBoard"))
     {
         NotifyPropertyChanged("MessageBoard");
     }
 }
예제 #2
0
 private void ClientModelChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName.Equals("Connected"))
     {
         NotifyPropertyChanged("Connected");
         ConnectCommand.RaiseCanExecuteChanged();
         SendCommand.RaiseCanExecuteChanged();
         China2.RaiseCanExecuteChanged();
         BingBong2.RaiseCanExecuteChanged();
         Wrong2.RaiseCanExecuteChanged();
         GreatWall2.RaiseCanExecuteChanged();
         ReallyRich2.RaiseCanExecuteChanged();
         FakeNews2.RaiseCanExecuteChanged();
         BuildWall.RaiseCanExecuteChanged();
         Fired2.RaiseCanExecuteChanged();
         Havana.RaiseCanExecuteChanged();
         Random.RaiseCanExecuteChanged();
     }
     else if (e.PropertyName.Equals("MessageBoard"))
     {
         NotifyPropertyChanged("MessageBoard");
     }
     else if (e.PropertyName.Equals("China"))
     {
         NotifyPropertyChanged("China");
     }
     else if (e.PropertyName.Equals("BingBong"))
     {
         NotifyPropertyChanged("BingBong");
     }
     else if (e.PropertyName.Equals("Wrong"))
     {
         NotifyPropertyChanged("Wrong");
     }
     else if (e.PropertyName.Equals("GreatWall"))
     {
         NotifyPropertyChanged("GreatWall");
     }
     else if (e.PropertyName.Equals("ReallyRich"))
     {
         NotifyPropertyChanged("ReallyRich");
     }
     else if (e.PropertyName.Equals("FakeNews"))
     {
         NotifyPropertyChanged("FakeNews");
     }
     else if (e.PropertyName.Equals("Fired"))
     {
         NotifyPropertyChanged("Fired");
     }
     else if (e.PropertyName.Equals("RandomNoise"))
     {
         NotifyPropertyChanged("RandomNoise");
     }
     else if (e.PropertyName.Equals("Havanas"))
     {
         NotifyPropertyChanged("Havanas");
     }
     else if (e.PropertyName.Equals("BuildWalls"))
     {
         NotifyPropertyChanged("BuildWalls");
     }
 }