Пример #1
0
 /// <summary>
 /// 地址栏文本改变(刷新ListView)
 /// </summary>
 public void LocalUrlTextChanged()
 {
     if (UrlBarLocal.CBEUrl.InvokeRequired)
     {
         setUrlBar sub = new setUrlBar(delegate(string localpath)
         {
             UrlBarLocal.CBEUrl.Text = localpath;
             UrlBarLocal.CBEUrl.Items.Add(localpath);
         });
         UrlBarLocal.CBEUrl.Invoke(sub, LocalPath);
     }
     else
     {
         UrlBarLocal.CBEUrl.Text = LocalPath;
         UrlBarLocal.CBEUrl.Items.Add(LocalPath);
     }
     UpYun_Controller.Main main = new UpYun_Controller.Main();
     if (LocalPath == Environment.SpecialFolder.MyComputer.ToString())
     {
         main.getFileInformationMyPc(ListViewLocal, ImageListLocalIcon, LocalPath);
     }
     else
     {
         main.getFileInformation(ListViewLocal, ImageListLocalIcon, LocalPath);
     }
 }
Пример #2
0
 /// <summary>
 /// 远程浏览器地址栏文本改变刷新listview
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void WebUrlTextChanged()
 {
     if (userInformation != null)
     {
         if (UrlBarWeb.CBEUrl.InvokeRequired)
         {
             setUrlBar sub = new setUrlBar(delegate(string webpath)
             {
                 UrlBarWeb.CBEUrl.Text = webpath;
                 UrlBarWeb.CBEUrl.Items.Add(WebPath);
             });
             UrlBarWeb.CBEUrl.Invoke(sub, WebPath);
         }
         else
         {
             UrlBarWeb.CBEUrl.Text = WebPath;
             UrlBarWeb.CBEUrl.Items.Add(WebPath);
         }
         UpYun_Controller.Main main = new UpYun_Controller.Main();
         main.getFileInformationWeb(ListViewWeb, ImageListWebIcon, WebPath, userInformation);
     }
 }
Пример #3
0
 /// <summary>
 /// 远程浏览器地址栏文本改变刷新listview
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void WebUrlTextChanged()
 {
     if (userInformation != null)
     {
         if (UrlBarWeb.CBEUrl.InvokeRequired)
         {
             setUrlBar sub = new setUrlBar(delegate(string webpath)
                 {
                     UrlBarWeb.CBEUrl.Text = webpath;
                     UrlBarWeb.CBEUrl.Items.Add(WebPath);
                 });
             UrlBarWeb.CBEUrl.Invoke(sub, WebPath);
         }
         else
         {
             UrlBarWeb.CBEUrl.Text = WebPath;
             UrlBarWeb.CBEUrl.Items.Add(WebPath);
         }
         UpYun_Controller.Main main = new UpYun_Controller.Main();
         main.getFileInformationWeb(ListViewWeb, ImageListWebIcon, WebPath, userInformation);
     }
 }
Пример #4
0
 /// <summary>
 /// 地址栏文本改变(刷新ListView)
 /// </summary>
 public void LocalUrlTextChanged()
 {
     if (UrlBarLocal.CBEUrl.InvokeRequired)
     {
         setUrlBar sub = new setUrlBar(delegate(string localpath)
         {
             UrlBarLocal.CBEUrl.Text = localpath;
             UrlBarLocal.CBEUrl.Items.Add(localpath);
         });
         UrlBarLocal.CBEUrl.Invoke(sub, LocalPath);
     }
     else
     {
         UrlBarLocal.CBEUrl.Text = LocalPath;
         UrlBarLocal.CBEUrl.Items.Add(LocalPath);
     }
     UpYun_Controller.Main main = new UpYun_Controller.Main();
     if (LocalPath == Environment.SpecialFolder.MyComputer.ToString())
         main.getFileInformationMyPc(ListViewLocal, ImageListLocalIcon, LocalPath);
     else
         main.getFileInformation(ListViewLocal, ImageListLocalIcon, LocalPath);
 }