public CreditCardForm(Customer user, CustomerForm parent) { parentForm = parent; currentUser = user; InitializeComponent(); }
public MovieViewForm(Movie selectedMovie, Customer CurrentUser, bool canRate, CustomerForm parent) { this.parent = parent; this.canRate = canRate; movie = selectedMovie; user = CurrentUser; InitializeComponent(); NameLabel.Text = movie.Name; GenreLabel.Text = movie.Genre; RatingLabel.Text = movie.Rating.ToString(); CopyLabel.Text = movie.Num_copies.ToString(); BindingList <Actor> actors = DBEnvironment.RetrieveActors(); Starred starred = new Starred(actors.ToArray(), null, movie); actorsInMovie = DBEnvironment.GetStarred(movie); MovieCastLabel.Text = CreateStarredText(); RatingSlider.Hide(); RatingButton.Hide(); if (!canRate) { return; } RatingSlider.Show(); RatingButton.Show(); RentButton.Hide(); }