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; ParentViewFolder[] folders = this.pv.folders; for (int i = 0; i < folders.Length; i++) { ParentViewFolder parentViewFolder = folders[i]; if (parentViewFolder.guid == this.selectedGUID) { this.pv.lv.row = num; return; } num++; ParentViewFile[] files = parentViewFolder.files; for (int j = 0; j < files.Length; j++) { ParentViewFile parentViewFile = files[j]; if (parentViewFile.guid == this.selectedGUID) { this.pv.lv.row = num; return; } num++; } } } else { this.pv.lv.row = -1; } } }
private void DoSelectionChange() { if (this.lv.row == -1) { return; } 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; return; } ++num; } } } else { this.pv.lv.row = -1; } }