Esempio n. 1
0
        public void Add()
        {
            var nMovie = new MovieViewModel();

            nMovie.PropertyChanged += Movie_OnNotifyPropertyChanged;
            Titles.Add(nMovie);
            myMovie.Add(nMovie);
            SelectedIndex = Titles.IndexOf(nMovie);
        }
Esempio n. 2
0
        /// <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);
        }