Beispiel #1
0
        private void _user_FileTransportProgressChanged(object sender, FileTransportEventArgs args)
        {
            TransportFile file = args.File;

            OutputLog("接收文件[" + file.File.Name + "]," + file.Progress + "%," +
                      LanFile.HumanReadbleLen(file.TransportedLength) + "/" +
                      LanFile.HumanReadbleLen(file.File.Length) + "," +
                      LanFile.HumanReadbleLen(file.TransportedSpeed) + "/s");
        }
Beispiel #2
0
        private void _user_FileReceiveProgressChanged(object sender, FileTransportEventArgs args)
        {
            TransportFile file = args.File;

            this.userListBox.SetFileTransportProgress(file);
        }
Beispiel #3
0
 private void _user_ImageReceiveProgressChanged(object sender, FileTransportEventArgs args)
 {
     //因为接收速度很快,暂未对应图片的接受进度
 }
Beispiel #4
0
        private void _user_FileSendCompleted(object sender, FileTransportEventArgs args)
        {
            TransportFile file = args.File;

            this.userListBox.SetFileTransportProgress(file);
        }