private void DoSelectionChange()
{
if (this.lv.row != -1)
{
string firstSelected = this.GetFirstSelected();
if (firstSelected != string.Empty)
{
this.selectedGUID = firstSelected;
}
if (AssetServer.IsGUIDValid(this.selectedGUID) != 0)
{
int num = 0;
this.pv.lv.row = -1;
foreach (ParentViewFolder folder in this.pv.folders)
{
if (folder.guid == this.selectedGUID)
{
this.pv.lv.row = num;
break;
}
num++;
foreach (ParentViewFile file in folder.files)
{
if (file.guid == this.selectedGUID)
{
this.pv.lv.row = num;
break;
}
num++;
}
}
}
else
{
this.pv.lv.row = -1;
}
}
}