// Event handler for when double clicking on item in listbox // Shows message box with information about the selected object private void listBoxViewEstates_DoubleClick(object sender, EventArgs e) { selectedEstate = estateManager.GetAt(listBoxViewEstates.SelectedIndex); MessageBox.Show(selectedEstate.ToString()); }