Пример #1
0
 private void btnShowVisitorInfo_Click(object sender, EventArgs e)
 {
     if (lbVisitors.SelectedIndex != -1)
     {
         VisitorSearch.ShowVisitorInfo((Visitor)lbVisitors.SelectedItem);
     }
 }
Пример #2
0
 private void lbVisitors_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (lbVisitors.SelectedIndex != -1)
     {
         VisitorSearch.ShowVisitorInfo((Visitor)lbVisitors.SelectedItem);
     }
 }