public FilmForm() { _directorService = new DirectorService(); _filmService = new FilmServices(); _ratingService = new RatingServices(); InitializeComponent(); }
public ActorForm() { InitializeComponent(); _actorService = new ActorService(); _filmService = new FilmServices(); List <DirectorRatingDTO> AktorFilm = _actorService.ActorTopFiveFilm(_actorService.GetByIDActorService(FilmForm._idAktor)); lblOyuncuAdi.Text = _actorService.GetByIDActorService(FilmForm._idAktor).ActorName + " " + _actorService.GetByIDActorService(FilmForm._idAktor).ActorSurname; lblActorBio.Text = _actorService.GetByIDActorService(FilmForm._idAktor).ActorBiography; string year = Convert.ToString(_actorService.GetByIDActorService(FilmForm._idAktor).BirthDate.Year); string month = Convert.ToString(_actorService.GetByIDActorService(FilmForm._idAktor).BirthDate.Month); string day = Convert.ToString(_actorService.GetByIDActorService(FilmForm._idAktor).BirthDate.Day); lblDogumTarihi.Text = day + "-" + month + "-" + year; lblUlke.Text = _actorService.GetByIDActorService(FilmForm._idAktor).Country.CountryName; pcbOyuncuResim.ImageLocation = Application.StartupPath + _actorService.GetByIDActorService(FilmForm._idAktor).ActorPhotoUrl; try { pcbPopFilm1.ImageLocation = Application.StartupPath + _filmService.GetByIdFilmService(AktorFilm[0].FilmID).PosterUrl; pcbPopFilm2.ImageLocation = Application.StartupPath + _filmService.GetByIdFilmService(AktorFilm[1].FilmID).PosterUrl; pcbPopFilm3.ImageLocation = Application.StartupPath + _filmService.GetByIdFilmService(AktorFilm[2].FilmID).PosterUrl; pcbPopFilm4.ImageLocation = Application.StartupPath + _filmService.GetByIdFilmService(AktorFilm[3].FilmID).PosterUrl; pcbPopFilm5.ImageLocation = Application.StartupPath + _filmService.GetByIdFilmService(AktorFilm[4].FilmID).PosterUrl; } catch (Exception) { } }
public UsersController(MovieCollectorContext dbContext, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, UserServices userServices, FilmServices filmServices) { _context = dbContext; _userManager = userManager; _roleManager = roleManager; _userServices = userServices; _filmServices = filmServices; }
public MainViewModel() { _listFilms = new ObservableCollection <Film>(); FilmServices fs = new FilmServices(); List <Film> films = new List <Film>(); films.AddRange(fs.GetAll()); foreach (Film item in films) { _listFilms.Add(item); } }
public MovieController(MovieCollectorContext dbContext, UserManager <ApplicationUser> userManager, FilmServices filmServices, UserServices userServices) { // Initialize items to be used throughout the controller _userManager = userManager; _context = dbContext; _filmServices = filmServices; _userServices = userServices; //_movieConverter = movieConverter; // This is the client that is used to work with the TMDb.org API // TODO: Store the TMDB ID elsewhere. client = new TMDbClient("9950b6bfd3eef8b5c9b7343ead080098"); }
/*private bool CanAjout() * { * return (Titre is null) ? false : ((Acteur is null) ? false : ((Real is null)?false:((AnneeDeSortie == 0)?false:true))); * }*/ private void Ajout() { Film f = new Film { Titre = Titre, ActeurPrincipal = Acteur, Realisateur = Real, AnneeDeSortie = AnneeDeSortie }; FilmServices fs = new FilmServices(); fs.Create(f); AjoutCollec(f); }
public FilmFilterForm() { InitializeComponent(); _filmServices = new FilmServices(); _countryService = new CountryService(); _directorService = new DirectorService(); _actorService = new ActorService(); _categoryService = new CategoryService(); _ratingService = new RatingServices(); ltwFilmAra.ItemSelectionChanged += LtwFilmAra_ItemSelectionChanged; ltvDetaylıAra.ItemSelectionChanged += LtvDetaylıAra_ItemSelectionChanged; listviewAraDoldur(); listviewDetayliAraDoldur(); cbxKategoriDoldur(); cbxUlkeDoldur(); }
public FilmFilterForm() { InitializeComponent(); _filmServices = new FilmServices(); _countryService = new CountryService(); _directorService = new DirectorService(); _actorService = new ActorService(); _categoryService = new CategoryService(); _ratingService = new RatingServices(); ltwFilmAra.ItemSelectionChanged += LtwFilmAra_ItemSelectionChanged; ltvDetaylıAra.ItemSelectionChanged += LtvDetaylıAra_ItemSelectionChanged; listviewAraDoldur(); listviewDetayliAraDoldur(); cbKategori.DisplayMember = "CategoryName"; cbKategori.ValueMember = "CategoryID"; cbKategori.DataSource = _categoryService.GetAllCategoriesService(); cbUlke.DisplayMember = "CountryName"; cbUlke.ValueMember = "CountryID"; cbUlke.DataSource = _countryService.GetAllCountriesService(); }
public DirectorForm() { InitializeComponent(); _directorService = new DirectorService(); _filmServices = new FilmServices(); }