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(); } }
private void cmdCreateReservation_Click(object sender, EventArgs e) { NewReservation frmNewReservation = new NewReservation(this.cl); frmNewReservation.ShowDialog(); }
private void cmdNew_Click(object sender, EventArgs e) { NewReservation newReservationWindow = new NewReservation(); newReservationWindow.ShowDialog(); }