Exemplo n.º 1
0
 public CreditCardForm(Customer user, CustomerForm parent)
 {
     parentForm  = parent;
     currentUser = user;
     InitializeComponent();
 }
Exemplo n.º 2
0
        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();
        }