Ejemplo n.º 1
0
 private void _notifyLocationTimer_Tick(object sender, EventArgs e)
 {
     NotifyLocationTimer.Stop();
     _newLocationIsValid = CanAddLocation(NewLocationInput);
     AddInstall.RaiseCanExecuteChanged();
     NotifyPropertyChanged("NewLocationIsValid");
 }
Ejemplo n.º 2
0
 private void BeatSaberLocations_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Remove || e.Action == NotifyCollectionChangedAction.Reset)
     {
         if (e.OldItems.Contains(ChosenInstall))
         {
             ChosenInstall = BeatSaberLocations.FirstOrDefault();
         }
         AddInstall.RaiseCanExecuteChanged();
     }
 }