Ejemplo n.º 1
0
 /// <summary>
 /// 拖动到控件区域并松开鼠标
 /// </summary>
 private void up_DragEnter(object sender, DragEventArgs e)
 {
     string [] localpathlist = (e.Data.GetData(DataFormats.FileDrop) as string []);
     try
     {
         localpathlist.ToList().ForEach(n => {
             sftp.Put(n, "/biz/371400/BizMsg/" + Path.GetFileName(n));
             showarea.Text = null;
             showfile(sftp);
         });
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }