Esempio n. 1
0
        private void txtView_Click(object sender, EventArgs e)
        {
            frmReservationTitle child = new frmReservationTitle();

            child.Reservationid = Convert.ToInt32(rebll.maxReservationlID().ToString());
            child.Show();
        }
Esempio n. 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            eReservation er = new eReservation();

            er.CustomerID      = Convert.ToInt32(txtCustomerID.Text);
            er.ReservationDate = Convert.ToDateTime(dtpReservation.Text);

            rebll.insertReservation(er);



            LoadDataGridView(dgvReservation, rebll.getAllReservation());


            frmReservationTitle child = new frmReservationTitle();

            child.Reservationid = Convert.ToInt32(rebll.maxReservationlID().ToString());
            child.Show();
        }