internal static int IndexOf(ParentViewFile[] filesFrom, string lfname)
 {
   for (int index = 0; index < filesFrom.Length; ++index)
   {
     if (string.Compare(filesFrom[index].name, lfname, true) == 0)
       return index;
   }
   return -1;
 }
예제 #2
0
		internal static int IndexOf(ParentViewFile[] filesFrom, string lfname)
		{
			for (int i = 0; i < filesFrom.Length; i++)
			{
				if (string.Compare(filesFrom[i].name, lfname, true) == 0)
				{
					return i;
				}
			}
			return -1;
		}
예제 #3
0
 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;
         }
     }
 }
예제 #4
0
 internal static int CompareViewFile(ParentViewFile p1, ParentViewFile p2)
 {
     return(string.Compare(p1.name, p2.name, true));
 }
예제 #5
0
 internal static int CompareViewFile(ParentViewFile p1, ParentViewFile p2)
 {
     return string.Compare(p1.name, p2.name, true);
 }