예제 #1
0
 //获取远程电脑上文件的信息
 private void lvs_hostexplorer_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         BaseFile basefile = ltv_hostexplorer.FocusedItem.Tag as BaseFile;
         if (basefile != null)
         {
             if (basefile.Flag == FileFlag.File)
             {
                 GeneralControler.GetFileDetial(basefile.Name);
             }
             else if (basefile.Flag == FileFlag.Directory)
             {
                 lbl_Display.Text = basefile.Name;
             }
         }
     }
     catch { }
 }