コード例 #1
0
 public Line_UpGroepenVM()
 {
     this._alleGroepen = GroepenRepository.GetGroepen();
     this._groepen = _alleGroepen;
     this._isBewerkVisible = Visibility.Collapsed;
     this._isOverzichtVisible = Visibility.Visible;
     this._genres = GenreRepository.GetGenres();
     this._genres.Insert(0, new Genre() { Naam = "---- Alle genres ----" });
     this._genresVrToevoegen = GenreRepository.GetGenres();
     this._selectedGenreVrToevoegen = this.GenresVrToevoegen[0];
     this._isGenreToevoegenEnabled = false;
 }
コード例 #2
0
        private void VerwijderGenre(Genre g)
        {
            Groep temp = this.SelectedGroep;
            GroepenRepository.RemoveGenre(this.SelectedGroep, g);

            this._alleGroepen = GroepenRepository.GetGroepen();
            this.Groepen = _alleGroepen;

            UpdateGroepen();
            this.SelectedGroep = this.Groepen.Where(x => x.ID == temp.ID).FirstOrDefault();
        }