示例#1
0
 private void ParseDirectoryRecursive(object path)
 {
     try
     {
         do
         {
             FileInfoDataList ss = ShowSharefile.ReceiveShare();
             if (ss.Name == "")
             {
                 break;
             }
             int    asdf = ss.Name.LastIndexOf(@"\");
             string a    = ss.Name.Substring(0, asdf + 1);
             if (Directory != a)
             {
                 continue;
             }
             ss.Name = ss.Name.Substring(asdf + 1, ss.Name.Length - asdf - 1);
             Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, (ThreadStart) delegate
             {
                 FileInfoDataList si = ShowSharefile.GetInfo(ss);
                 if (si != null)
                 {
                     FileItemInfo.Add(si);
                 }
                 Thread.Sleep(5);
             });
         } while (true);
     }
     catch (Exception)
     {
         ;
     }
 }