Exemplo n.º 1
0
        private void Eval_BrowseItem(TCPPacketReader packet)
        {
            ushort     ident = packet;
            BrowseItem item  = new BrowseItem(packet, this.crypto);

            this.Panel.BrowseItemReceived(ident, item);
        }
Exemplo n.º 2
0
        public void ItemReceived(BrowseItem item)
        {
            this.files.Add(item);
            this.so_far++;

            if (this.so_far >= (this.last_update + 50))
            {
                this.last_update = this.so_far;
                this.LeftContainer.SetHeader(StringTemplate.Get(STType.BrowseTab, 0) + "... (" + this.so_far + " / " + this.expected + ")");
            }
        }
Exemplo n.º 3
0
        public void BrowseItemReceived(ushort ident, BrowseItem item)
        {
            for (int i = 0; i < this.tabControl1.TabPages.Count; i++)
            {
                if (this.tabControl1.TabPages[i] is BrowseTab)
                {
                    BrowseTab tab = (BrowseTab)this.tabControl1.TabPages[i];

                    if (tab.BrowseIdent == ident)
                    {
                        tab.ItemReceived(item);
                        break;
                    }
                }
            }
        }