Beispiel #1
0
        void INetworkListener.OnReceivingFile(string sender, string filename)
        {
            CCBFileReceived filedata = new CCBFileReceived(sender, m_p2p.UserId, filename);

            this.Dispatcher.BeginInvoke(m_fileReceivedCB, new object[1] {
                filedata
            });
        }
Beispiel #2
0
 public P2PReceiveFileWnd(CCBFileReceived filedata)
 {
     m_filedata = filedata;
     InitializeComponent();
     Initialize();
     CeebeetleWindowInit();
     Validat();
 }
Beispiel #3
0
        void PromptForFileReceived(CCBFileReceived filedata)
        {
            P2PReceiveFileWnd prompt = new P2PReceiveFileWnd(filedata);

            prompt.Owner = this;
            if (true == prompt.ShowDialog())
            {
                Log("Ready to receive the file {0} to {1}.", filedata.Name, prompt.Path);
                m_p2p.RequestFileTransfer(filedata.Sender, filedata.Name, prompt.Path);
            }
            else
            {
                m_p2p.CancelFileTransfer(filedata.Sender, filedata.Name);
            }
        }