Esempio n. 1
0
 void value_fileAllowResume(object sender, fileTransmitEvnetArgs e)
 {
     this.linkLabelReceive.Visible = false;
     this.linkLabelResume .Visible = true ;
 }
Esempio n. 2
0
 void value_fileTransmitting(object sender, fileTransmitEvnetArgs e)
 {
     delegateSetRecControl d = new delegateSetRecControl(SetRecControl);
     this.Invoke(d, TransmitState.Transmitting, e.fileInfo);
 }
Esempio n. 3
0
        void value_fileTransmitConnected(object sender, fileTransmitEvnetArgs e)
        {
            try
            {
                delegateSetRecControl d = new delegateSetRecControl(SetRecControl);
                this.Invoke(d, TransmitState.Connected, e.fileInfo);
            }
            catch
            {

            }
        }
Esempio n. 4
0
        void value_fileTransmitOutTime(object sender, fileTransmitEvnetArgs e)
        {

        }
Esempio n. 5
0
 private void webFile1_fileTransmitError(object sender, fileTransmitEvnetArgs e)
 {
     MessageBox.Show(e.fileInfo.Message);
 }
Esempio n. 6
0
        private void webFile1_fileTransmitted(object sender, fileTransmitEvnetArgs e)
        {

        }
Esempio n. 7
0
 private void webFile1_fileTransmitting(object sender, fileTransmitEvnetArgs e)
 {
     this.currTransmittedLen = (int)e.fileInfo.CurrLength;//获得当前已经下载的文件长度
 }
Esempio n. 8
0
 private void tcpFile_fileTransmitted(object sender, fileTransmitEvnetArgs e)
 {
     if (SendMsgToUser != null)
     {
         IMLibrary3.Protocol.ImageFileMsg fileMsg = new IMLibrary3.Protocol.ImageFileMsg();
         fileMsg.MessageType = IMLibrary3.Enmu.MessageType.User;
         fileMsg.Name = "";
         fileMsg.MD5 = e.fileInfo.MD5;
         fileMsg.Extension = e.fileInfo.Extension;
         fileMsg.Length = e.fileInfo.Length;
         SendMsgToUser(fileMsg, User);
     }
 }