private void Eval_BrowseItem(TCPPacketReader packet) { ushort ident = packet; BrowseItem item = new BrowseItem(packet, this.crypto); this.Panel.BrowseItemReceived(ident, item); }
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 + ")"); } }
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; } } } }