Exemple #1
0
 /// <summary>
 /// Raises file received event
 ///
 /// Used to monitor progres of file being sent/received
 /// </summary>
 /// <param name="sender">sender object</param>
 /// <param name="e">ReceiveFileEventArgs event arguments</param>
 internal void RaiseFileReceived(object sender, TransferFileEventArgs e)
 {
     if (FileReceived != null)
     {
         FileReceived(this, e);
     }
 }
Exemple #2
0
        /// <summary>
        /// Raises a FileReceive event
        /// </summary>
        /// <param name="FileName">Filename being received</param>
        /// <returns>Client should return a fully qualified path/file name of the file to be returned</returns>
        internal string RaiseFileReceive(string FileName)
        {
            TransferFileEventArgs args = new TransferFileEventArgs(FileName);

            if (FileReceive != null)
            {
                FileReceive(this, args);
            }

            return(args.FileName);
        }