public void Add() { var nMovie = new MovieViewModel(); nMovie.PropertyChanged += Movie_OnNotifyPropertyChanged; Titles.Add(nMovie); myMovie.Add(nMovie); SelectedIndex = Titles.IndexOf(nMovie); }
/// <summary> /// Get an item from the list by its title /// </summary> public T GetItem(string title) { T item = null; int idx = Titles.IndexOf(title); if (idx > -1) { item = this[idx]; } return(item); }