Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     userRentals.clearAllUserRentals();
     userRentals.fillTableWithUserRentals(mrd.printUserRentals(name));
     this.Hide();
     userRentals.Show();
 }
Esempio n. 2
0
        public UserRentals(string name)
        {
            InitializeComponent();

            this.name   = name;
            mrd         = UserConnection.getInstance().getMovieRentalDatabase();
            label1.Text = name;
            fillTableWithUserRentals(mrd.printUserRentals(name));
        }
Esempio n. 3
0
 private void button4_Click(object sender, EventArgs e)
 {
     new Printer.PrinterContext(new Printer.PrinterFactory().get("HTML")).executeStrategy(mrd.printUserRentals(name));
 }