public MainWindow() { InitializeComponent(); this.SearchService = new FreeTextSearchService(); this.MovieService = new MovieService(); this.CastOrCrewService = new CastOrCrewService(); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value.GetType() == typeof(CastOrCrew)) { CastOrCrewService castOrCrewService = new CastOrCrewService(); var movies = castOrCrewService.GetDirectedMovies((CastOrCrew)value); return(string.Join("\n", movies.Select(x => x.Title))); } return(null); }