From iLab Cookbook

Toolkits: HowToGetTheSelectedPhidgetDeviceFromThePhidgetManagerSkin

<< Back to the SharedPhidgets page


This is useful, when you want to use the PhidgetManagerSkin to let users select a phidget device from the list :


// The PhidgetManager skin
GroupLab.SharedPhidgets.PhidgetManagerSkin phidgetManagerSkin =
  new GroupLab.SharedPhidgets.PhidgetManagerSkin();

// The listview object
GroupLab.SharedPhidgets.FadingListView listview =
  phidgetManagerSkin.getListView();

// Now you can use the listview object...
listview.SelectedIndexChanged
  +=new EventHandler(listview_SelectedIndexChanged);

System.Windows.Forms.ListView.SelectedIndexCollection collection =
  this.listview.SelectedItems;

 



Retrieved from http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/HowToGetTheSelectedPhidgetDeviceFromThePhidgetManagerSkin
Page last modified on January 24, 2006, at 02:52 PM