示例#1
0
文件: Gui.cs 项目: riomontana/CSharp
 // 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());
 }