Example #1
0
 /// <summary>
 /// 添加文件到发送列表
 /// </summary>
 /// <param name="path"></param>
 public void AddFileToSendList(string path)
 {
     if (FileSendList.Contains(path))
     {
         return;
     }
     if (System.IO.File.Exists(path))
     {
         FileSendList.Add(path);
         System.IO.FileInfo fi = new System.IO.FileInfo(path);
         AddFileToSendList(false, System.IO.Path.GetFileName(path), (ulong)fi.Length);
     }
     else if (System.IO.Directory.Exists(path))
     {
         FileSendList.Add(path);
         AddFileToSendList(true, System.IO.Path.GetFileName(path), 0ul);
     }
 }
Example #2
0
 /// <summary>
 /// 清空发送队列
 /// </summary>
 public void ClearFileSendQueue()
 {
     FileSendList.Clear();
 }
Example #3
0
 //复制浏览器中选择的文字
 void menuClear_Click(object sender, EventArgs e)
 {
     browser.InvokeScript("clearChatHistory");
     //清理发送的列表
     FileSendList.Clear();
 }