private void btn_addFloor_Click(object sender, EventArgs e)
 {
     using (FloorED floorED = new FloorED())
     {
         if (floorED.ShowDialog() != DialogResult.OK)
         {
             refreshFloor(floor.getFloor());
         }
     }
 }
        private void dgv_floor_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int index = e.RowIndex;

            if (index != -1)
            {
                DataGridViewRow selectedRow = dgv_floor.Rows[index];
                string          floorId     = selectedRow.Cells["id"].Value.ToString();
                using (FloorED floorED = new FloorED(floorId))
                {
                    if (floorED.ShowDialog() != DialogResult.OK)
                    {
                        refreshFloor(floor.getFloor());
                    }
                }
            }
        }