Ejemplo n.º 1
0
        /// <summary>
        /// Command for adding author to the selected author list
        /// </summary>
        public void AddAuthorExecute()
        {
            ViewAuthor author = SelectedPossibleAuthor;

            PossibleAuthorsList.Remove(author);
            SelectedAuthorList.Add(author);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// sets ui values to the selectedcomic
        /// </summary>
        /// <param name="comic">comic to set</param>
        public void SetComic(ViewComic comic)
        {
            InputTitle         = comic.Title;
            SelectedViewSeries = comic.Series;
            InputSeriesNr      = comic.SeriesNumber.ToString();

            foreach (ViewAuthor author in comic.Authors)
            {
                SelectedAuthorList.Add(author);
                PossibleAuthorsList.Remove(author);
            }

            SelectedViewPublisher = comic.Publisher;
        }