void value_fileAllowResume(object sender, fileTransmitEvnetArgs e) { this.linkLabelReceive.Visible = false; this.linkLabelResume .Visible = true ; }
void value_fileTransmitting(object sender, fileTransmitEvnetArgs e) { delegateSetRecControl d = new delegateSetRecControl(SetRecControl); this.Invoke(d, TransmitState.Transmitting, e.fileInfo); }
void value_fileTransmitConnected(object sender, fileTransmitEvnetArgs e) { try { delegateSetRecControl d = new delegateSetRecControl(SetRecControl); this.Invoke(d, TransmitState.Connected, e.fileInfo); } catch { } }
void value_fileTransmitOutTime(object sender, fileTransmitEvnetArgs e) { }
private void webFile1_fileTransmitError(object sender, fileTransmitEvnetArgs e) { MessageBox.Show(e.fileInfo.Message); }
private void webFile1_fileTransmitted(object sender, fileTransmitEvnetArgs e) { }
private void webFile1_fileTransmitting(object sender, fileTransmitEvnetArgs e) { this.currTransmittedLen = (int)e.fileInfo.CurrLength;//获得当前已经下载的文件长度 }
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); } }