/// <summary> /// Command for adding author to the selected author list /// </summary> public void AddAuthorExecute() { ViewAuthor author = SelectedPossibleAuthor; PossibleAuthorsList.Remove(author); SelectedAuthorList.Add(author); }
/// <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; }