Reg:goview selection

Hi All,

I am using web based GoDiagram planogram tool. here u take a sample that i have added 2 products(note/balloon) and i have select a product. Now the goview's product get selected, how do i check the goview product are selected. Below here my sample code
if( ! goView1.Selection.IsEmpty )
do someting
please guide me.
Thanks in advance

goView1.Selection is a collection, so you’ll want to iterate over it to look at each selected object:

foreach (GoObject obj in goView1.Selection) {