private void fileTransfer_Progressing(DotMSN.FileTransfer sender, EventArgs e) { if ((this.recivedLastTick++ % 1000) == 0) { UpdateDataEvent(); //messageFormOwner.DisplayMessage("fileTransfer_Progressing: " + sender.BytesProcessed); } }
public MSNFileTransfer(DotMSN.FileTransfer initFileTransfer, MessageForm initForm) { msnFileTransfer = initFileTransfer; msnFileTransfer.Accepted += new DotMSN.FileTransfer.FileTransferHandler(fileTransfer_Accepted); msnFileTransfer.Completed += new DotMSN.FileTransfer.FileTransferHandler(fileTransfer_Completed); msnFileTransfer.InvitationCancelled += new DotMSN.FileTransfer.FileTransferInvitationCancelledHandler(fileTransfer_InvitationCancelled); msnFileTransfer.Progressing += new DotMSN.FileTransfer.FileTransferHandler(fileTransfer_Progressing); msnFileTransfer.Started += new DotMSN.FileTransfer.FileTransferHandler(fileTransfer_Started); msnFileTransfer.TransferCancelled += new DotMSN.FileTransfer.FileTransferCancelledHandler(fileTransfer_TransferCancelled); messageFormOwner = initForm; }
private void fileTransfer_TransferCancelled(DotMSN.FileTransfer sender, DotMSN.FileTransferCancelledEventArgs e) { messageFormOwner.DisplayMessage("fileTransfer_TransferCancelled: " + e.CancelCode); timer.Stop(); UpdateDataEvent(); }
private void fileTransfer_Started(DotMSN.FileTransfer sender, EventArgs e) { messageFormOwner.DisplayMessage("fileTransfer_Started: " + sender.FileSize); timer.Start(); UpdateDataEvent(); }
private void fileTransfer_Completed(DotMSN.FileTransfer sender, EventArgs e) { messageFormOwner.DisplayMessage("File Completed"); timer.Stop(); UpdateDataEvent(); }
private void fileTransfer_Accepted(DotMSN.FileTransfer sender, EventArgs e) { messageFormOwner.DisplayMessage("File Accepted"); UpdateDataEvent(); }