private void Btn_Edit_Room_Click(object sender, EventArgs e)
 {
     if (dgv_bookings.SelectedRows.Count == 1)
     {
         DataGridViewRow selectedRow = dgv_bookings.SelectedRows[0];
         Booking         booking     = (Booking)selectedRow.Tag;
         EditBooking     editBooking = new EditBooking(bookings, users, rooms, booking, bookingsPath, roomsPath);
         editBooking.SaveObjects += SaveObjects;
         editBooking.ShowDialog();
         displayList();
     }
 }
        private void editeazaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataGridViewCell cell = dgv_bookings.SelectedCells[0];

            if (dgv_bookings.SelectedCells.Count == 1)
            {
                DataGridViewRow selectedRow = cell.OwningRow;
                Booking         booking     = (Booking)selectedRow.Tag;
                EditBooking     editBooking = new EditBooking(bookings, users, rooms, booking, bookingsPath, roomsPath);
                editBooking.SaveObjects += SaveObjects;
                editBooking.ShowDialog();
                displayList();
            }
        }