void fileTransfer_UploadCompleted(object sender, EventArgs e) { FileTransfer.SharedFile sharedFile = (FileTransfer.SharedFile)sender; if (sharedFile.LocalFileName != null) { myClientForm.FileTransferProcessDone(sharedFile.ToJID, sharedFile.FileName, sharedFile.ID, FileTransfer.FormatFileSize(sharedFile.Size)); } }