Beispiel #1
0
        public void RefreshTab(POEModel currentModel, string currentLeague, int tabId)
        {
            string inventId = ProxyMapper.STASH + (tabId + 1).ToString();

            items.RemoveAll(i => i.InventoryId == inventId);
            Add(currentModel.GetStash(tabId, currentLeague, true));
            refreshItemsByTabTab(tabId);
        }
Beispiel #2
0
        public void RefreshTab(POEModel currentModel, string currentLeague, int tabId, string accountName)
        {
            try
            {
                string inventId = ProxyMapper.STASH + (tabId + 1).ToString();
                items.RemoveAll(i => i.InventoryId == inventId);

                if (Tabs.First(t => t.i == tabId).IsFakeTab)
                {
                    refreshCharacterTab(currentModel, tabId, accountName);
                    return;
                }

                Add(currentModel.GetStash(tabId, currentLeague, accountName, true));
                refreshItemsByTabTab(tabId);
            }
            catch (Exception ex)
            {
                Logger.Log("Error refreshing tab: " + ex.ToString());
            }
        }