private void _notifyLocationTimer_Tick(object sender, EventArgs e) { NotifyLocationTimer.Stop(); _newLocationIsValid = CanAddLocation(NewLocationInput); AddInstall.RaiseCanExecuteChanged(); NotifyPropertyChanged("NewLocationIsValid"); }
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(); } }