コード例 #1
0
        private void _chat_FileAdded(BitChat sender, SharedFile sharedFile)
        {
            SharedFileItem item = new SharedFileItem(sharedFile, _chat);

            item.FileRemoved += OnFileRemoved;

            lstFiles.AddItem(item);
        }
コード例 #2
0
        private void chat_FileAdded(BitChat.Peer peer, MessageItem message, SharedFile sharedFile)
        {
            SharedFileItem item = new SharedFileItem(sharedFile, _chat);

            item.FileRemoved += sharedFile_FileRemoved;
            item.ShareFile   += view_ShareFile;

            lstFiles.AddItem(item);

            if (!peer.IsSelf)
            {
                MessageNotification(_chat, null, peer.PeerCertificate.IssuedTo.Name + " shared a file");
            }
        }
コード例 #3
0
        private void sharedFile_FileRemoved(object sender, EventArgs e)
        {
            SharedFileItem item = sender as SharedFileItem;

            lstFiles.RemoveItem(item);
        }
コード例 #4
0
        private void _chat_FileAdded(BitChat sender, SharedFile sharedFile)
        {
            SharedFileItem item = new SharedFileItem(sharedFile, _chat);
            item.FileRemoved += OnFileRemoved;

            lstFiles.AddItem(item);
        }