예제 #1
0
 private void dgvExpense_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvReservations.SelectedRows.Count > 0)
     {
         Reservation    r       = (Reservation)dgvReservations.SelectedRows[0].Tag;
         NewReservation frmEdit = new NewReservation(r);
         frmEdit.ShowDialog();
     }
 }
예제 #2
0
        private void cmdCreateReservation_Click(object sender, EventArgs e)
        {
            NewReservation frmNewReservation = new NewReservation(this.cl);

            frmNewReservation.ShowDialog();
        }
예제 #3
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            NewReservation newReservationWindow = new NewReservation();

            newReservationWindow.ShowDialog();
        }