• 大小: 0.22M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 文件  文件传输  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Contract;

namespace Client
{
    delegate void DownFile(CustomFileInfo currentDownFile);
    class CallBack : ICallBack
    {
        #region ICallBack 成员

        DownFile down = null;
        public CallBack(DownFile down)
        {
            this.down = down;
        }
        static object obj = new object();
        public bool DownFile(CustomFileInfo currentDownFile)
        {
            lock (obj)
            {
                if (down != null)
                {
                    down.Invoke(currentDownFile);
                    return true;
                }
                return false;
            }
        }

        #endregion
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      18944  2010-03-08 09:20  WCFTranFile\Client\bin\Debug\Client.exe

     文件      42496  2010-03-08 09:20  WCFTranFile\Client\bin\Debug\Client.pdb

     文件      14328  2010-03-08 09:22  WCFTranFile\Client\bin\Debug\Client.vshost.exe

     文件        490  2009-06-11 05:14  WCFTranFile\Client\bin\Debug\Client.vshost.exe.manifest

     文件      10240  2010-03-04 13:08  WCFTranFile\Client\bin\Debug\Contract.dll

     文件      30208  2010-03-04 13:08  WCFTranFile\Client\bin\Debug\Contract.pdb

     文件      14848  2010-03-04 13:33  WCFTranFile\Client\bin\Debug\SocketServiceContract.dll

     文件      48640  2010-03-04 13:33  WCFTranFile\Client\bin\Debug\SocketServiceContract.pdb

     文件        795  2010-03-02 13:51  WCFTranFile\Client\CallBack.cs

     文件       4336  2010-03-02 15:33  WCFTranFile\Client\Client.csproj

     文件      12019  2010-03-08 09:20  WCFTranFile\Client\MainForm.cs

     文件      13244  2010-03-04 09:35  WCFTranFile\Client\MainForm.Designer.cs

     文件       5814  2010-03-04 09:35  WCFTranFile\Client\MainForm.resx

     文件       1408  2010-03-08 09:22  WCFTranFile\Client\obj\Debug\Client.csproj.FileListAbsolute.txt

     文件        850  2010-03-04 13:08  WCFTranFile\Client\obj\Debug\Client.csproj.GenerateResource.Cache

     文件      18944  2010-03-08 09:20  WCFTranFile\Client\obj\Debug\Client.exe

     文件        180  2010-03-08 09:20  WCFTranFile\Client\obj\Debug\Client.MainForm.resources

     文件      42496  2010-03-08 09:20  WCFTranFile\Client\obj\Debug\Client.pdb

     文件        180  2010-03-08 09:20  WCFTranFile\Client\obj\Debug\Client.Properties.Resources.resources

     文件        490  2010-03-02 15:17  WCFTranFile\Client\Program.cs

     文件       1344  2010-03-02 11:24  WCFTranFile\Client\Properties\AssemblyInfo.cs

     文件       2862  2010-03-02 11:24  WCFTranFile\Client\Properties\Resources.Designer.cs

     文件       5612  2010-03-02 11:24  WCFTranFile\Client\Properties\Resources.resx

     文件       1091  2010-03-02 11:24  WCFTranFile\Client\Properties\Settings.Designer.cs

     文件        249  2010-03-02 11:24  WCFTranFile\Client\Properties\Settings.settings

     文件      10240  2010-03-04 13:08  WCFTranFile\Contract\bin\Debug\Contract.dll

     文件      30208  2010-03-04 13:08  WCFTranFile\Contract\bin\Debug\Contract.pdb

     文件      14328  2010-03-02 11:17  WCFTranFile\Contract\bin\Debug\Contract.vshost.exe

     文件        490  2009-06-11 05:14  WCFTranFile\Contract\bin\Debug\Contract.vshost.exe.manifest

     文件       3686  2010-03-02 11:23  WCFTranFile\Contract\Contract.csproj

............此处省略88个文件信息

评论

共有 条评论